Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter sb_cole

    (@sb_cole)

    Yeah, I need to keep all URLs relative to the site root due to a server admin requirement. It makes deployment more straight forward and also makes subsequent dev server deployments easier as well. Plus in my testing environment it would be specified as localhost but then I would have to go back and change all of them once deployed to a production server to a different address. Not really an option unfortunately.

    Forum: Fixing WordPress
    In reply to: XML to WXR issue.

    I was able to successfully import it after reverting to WP 3.2.1. After doing so, I upgraded to 3.3 and everything is fine.

    Forum: Fixing WordPress
    In reply to: XML to WXR issue.

    @ashlinixon, interesting coincidence of timing, but I too am having the same issue as well. I have a feeling this has to do with the WP Importer not being compatible with 3.3. I’m going to continue to look around and will post back here if I find a solution. Please do the same if you find out also. πŸ˜‰

    Thread Starter sb_cole

    (@sb_cole)

    I found the solution to my problem. I had removed the commas from my list of values while gathering those numbers into an array. Duh. Anyway, if anyone ends up here looking for something along these lines, make sure you are passing a commma-delimited array of values.

    Thread Starter sb_cole

    (@sb_cole)

    Disregard this question. I discovered I had not structured my loop/logic properly.

    Thread Starter sb_cole

    (@sb_cole)

    Well, yes that did fix the issue of loading the next page (instead of the home page like it was doing). However it still only shows the same initial result set and not the remaining items in the set. Is the _mam_paginate() function designed to handle that functionality or is that something I need to handle outside of it?

    Also, I would really like to use the “pretty” permalinks (in this case date and name). Is your function not designed to work with that configuration?

    Again, thanks for your continued assistance!

    Thread Starter sb_cole

    (@sb_cole)

    Ok, so the link for the product page is:

    localhost/categories/widgets/

    when I rollover the “2” and “NEXT” buttons they display:

    localhost/index.php?&mypage=2

    below in the browser’s status bar. If I enter:

    localhost/categories/widgets/&mypage=2

    directly into the browser url bar it reloads the page but shows the same items as page one does and not the remaining items in the set. The pagination then displays the current page as 2 and makes the PREV and “1” buttons active which is desired. However, when you click on one of them it gives a 404. But if I enter:

    localhost/categories/widgets/&mypage=1

    it takes me back to the first page and resets the pagination to the original config.

    So I guess I have two issues now – wiring up the pagination to load the correct directory path and then once that’s working, having page2 load the remaining results and not repeat the first set.

    Any ideas how to go about that?

    Thread Starter sb_cole

    (@sb_cole)

    Ok, so I’ve been working with your code and am making some decent progress!! I’m getting the pagination now and what appears to be the correct amount of number links (in between the PREV and NEXT links). However, when I click on “2” or “NEXT” it loads my homepage instead of the same template page and the next result set.

    This could be due to me not using the SQL query function call you have listed near the top of the page. I tried using that but it wasn’t returning the results I need and truthfully I’m not aware of how to mod it to do so. So I pushed forward with trying to integrate the _mam_pagination() function call into my existing code. Also, given the layout of my page and the necessity to separate the results from the pagination (I need the pagination to be up top only in a separate div than the results items) I also omitted your results output code beneath the $limit and $range vars and the function call itself.

    Here is what I currently have running that gives the condition(s) I stated above:

    $productGroups = get_post_meta($post->ID, "product_names", true);
    $productList = explode(",", $productGroups);
    $limit = 8;
    $range = 5;
    echo _mam_paginate(count($productList),$limit,$range);

    Any idea why the pagination buttons load the home page instead of the next page in the results sequence?

    Thank you so much for you help! This code is exactly what I was hoping to find!

    Thread Starter sb_cole

    (@sb_cole)

    Thanks for the link! I’ll check it out and see if it works for me.

    Thread Starter sb_cole

    (@sb_cole)

    YES! Thank you! The first link is exactly what I was looking for. The second one is just gravy! πŸ™‚

    Just curious but how is the first link found from the WordPress homepage?

    Thanks again!

Viewing 10 replies - 1 through 10 (of 10 total)