• Resolved szwp

    (@szwordpress)


    Don,
    Here’s an odd challenge. I have a Category called Technology. Under this category I manually created several blogs. I also have a Category called Book Reviews ( menu Point of View -> Book Reviews). The posts under this category are automatically created using the Amazon Product in a Post plugin. (P.S. I have not written any reviews yet).

    When I visit my website (www.cafesami.com) and I click on the menu item Point of View -> Book Reviews, I get a list of the all the posts under that Category (in my case as of today, there are five posts under this category). When I open one of the Posts (Click read more), the post opens. Scroll down to the end of the post and click on the action button to view the next post. I should be able to view (scroll through) all five posts. However, some of the posts are skipped (the posts that were created by the plugin). On the other hand, all the posts that I manually created and placed under the Technology Category are shown (I can scroll through them all).

    I am not sure if this is an issue related to the way the Plugin created the Posts?

    I am using the Travelify Theme (Child theme), your plugin Version 3.6.4 and WordPress version 4.3.1

    asin used are 0947183124,1864692391,0947183191,0825636795,0739071580

    P.S. I also tried re-creating the posts by add a space after each asin (e.g. 0947183124, 1864692391). I got the same results.

    I also cleared the Cache and tried again but I got the same results.

    https://www.ads-software.com/plugins/amazon-product-in-a-post-plugin/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Don Fischer

    (@prophecy2040)

    I am not sure that it is the plugin causing the issue, as it just uses the standard WordPress function wp_insert_post() and it is not doing anything custom or special to that data being passed to the function.

    My guess is it is the theme template page or something hooking into the post navigation that is the cause.

    Of course, I cannot be 100%, but one way to tell would be to manually create a post like you did for technology and put it in the book review category (just that category, not technology also). Then check to see if you see it in the navigation on the single posts. If so, then it is the plugin. If not, then it is something else.

    Let me know what happens.

    Also, spaces before or after the comma in the ASINs will have no affect on anything as the plugin strips and trims any white-space or other non alpha-numeric character besides the comma and the numbers and letters in the ASINs.

    Additionally, I see in your post list page (https://www.cafesami.com/category/book-reviews/) you are getting the ‘excerpt-stripped’ output of the product which does not necessarily look good in most cases. Try checking to hook the excerpt and make sure the ‘show only on single page’ is unchecked, and the products will show fully in the list page without being stripped out like that.

    Warm regards,
    Don

    Thread Starter szwp

    (@szwordpress)

    Don,

    For testing purposes, I converted all my posts that were manually created belonging to the Category Technology to the Category Suggested Books (Previously it was called Book Reviews). When I scroll through the posts, I am able to see all of them with the exception of the ones that were automatically created using the plugin (recall multiple posts were created all at once using multiple asin).

    However, when I use the plugin to create a single post using a single asin, I can see it when scroll through the posts.

    I am wondering if the strings and/or the Dynamic Array (at allocation time) are not initialized causing special characters to be inserted accidentally in the database. I am not sure if this issue is possibly related to the other issue I posted regarding the Category not being set when the posts are created. From my understanding wp insert post function requires Category to be an Array.

    Just a thought.

    Don Fischer

    (@prophecy2040)

    That is possible. I will look into it a bit further and let you know what I find.

    Warmest regards,
    Don

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Amazon Product in a Post Plugin – When navigating, Posts are skipped’ is closed to new replies.