WordPress.org

Forums

WP Catalogue
[resolved] Delete Post under Product List (9 posts)

  1. strongheartfun
    Member
    Posted 1 year ago #

    Check out products page: http://www.strongheartfun.com

    How do I delete the random post under the product list?

    https://wordpress.org/plugins/wp-catalogue/

  2. Maeve Lander
    Member
    Plugin Author

    Posted 1 year ago #

    That's interesting... Which page template are you using for the page where the [wp-catalogue] shortcode is embedded?

    I can't be 100% sure without seeing the theme code in more detail, but I think the problem is a conflict with the custom post type the WP Catalogue uses and your theme. To confirm, you could switch to the default theme temporarily, and see if the problem is still happening... If not, then it is definitely an issue between the theme and the plugin, and we can troubleshoot further from there.

  3. strongheartfun
    Member
    Posted 1 year ago #

    The page is set to Default Template.

    I did a live preview of another theme and it did not show the problem. It seems the issue is only between the customizr theme and plugin.

  4. strongheartfun
    Member
    Posted 1 year ago #

    If it helps...

    I noticed that whats posting on the bottom is the product details of the last product listed on the page. So If I change the order I list my products that bottom post changes to show the product details of whatever the last product on the page is.

  5. Maeve Lander
    Member
    Plugin Author

    Posted 1 year ago #

    Ok thanks for checking that @strongheartfun

    WP Catalogue is built on a custom post type. I suspect the conflict is simply that your theme is using something with the same name, and thus WordPress isn't quite sure what to display on that page. Without access I can't really help further. As it's definitely a problem in your theme (rather than the plugin), this is something to take back to your developer or the theme vendor and get further assistance.

    Hope that helps

  6. strongheartfun
    Member
    Posted 1 year ago #

    Hey I found this information for a different plugin but it sounds like the same issue I am having.

    http://implecode.com/wordpress/product-catalog/theme-integration-guide/

    Is there anything similar to this that we can do for wp-catalogue to work with my theme.

  7. Steaders
    Member
    Posted 1 year ago #

    I have had a quick look at this. The theme is doing something clever involving buffering the output. I didn't dig too deeply though. This is clashing with the plugin in this instance.

    The plugin also needs some slight amending to fix its own issue. This should fix your problem.

    If you are able, please try replacing line 161 of the plugin file wpc-catalogue.php

    endwhile; wp_reset_postdata;

    with

    endwhile; wp_reset_postdata();

    Please report back how it goes. A fix can be added in the next update of the plugin if needed.

    Thanks

  8. strongheartfun
    Member
    Posted 1 year ago #

    That fixed the problem!

    Thank you for your help!

  9. Maeve Lander
    Member
    Plugin Author

    Posted 1 year ago #

    Nice work @Steaders, great solution. I'll implement this fix into next release of the plugin for everyone.

    Thanks again :-)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Catalogue
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic