WordPress.org

Support

Support » Plugins and Hacks » [Plugin: TheCartPress eCommerce Shopping Cart] CartPress causing 'no posts found' on custo

[Plugin: TheCartPress eCommerce Shopping Cart] CartPress causing 'no posts found' on custo

  • I recently had a bug report for my plug-in Event Organiser, which involved a conflict with theCartPress eCommerce Shopping Cart. (Bug report here).

    The archive of the custom post type ‘event’ was showing a ‘posts not found’ message, despite there being events that should be shown.

    On inspection of your plug-in, I notice you use the request filter. In particular (line 284, TheCartPress.class) reads:

    if ( isset( $wp_query->tax_query ) || $wp_query->is_archive() ) {

    If that conditional returns true, the plug-in alters the query (it adds a meta_key and orderby parameters). The result is that any post without that meta key do not display.

    This particular instance was solved by replacing it with:

    if ( (isset( $wp_query->tax_query ) || $wp_query->is_archive() ) && ! $wp_query->is_archive('event') ) {

    However, it seems any post type or taxonomy archive will turn up blank (unless it contains certain meta keys).

    Really, there should be a check that the post type/ taxonomy is one registered by Cartpress or have options to allow users to dissociate a post type from Cartpress.

    Many thanks,
    Stephen

    http://wordpress.org/extend/plugins/thecartpress/

Viewing 3 replies - 1 through 3 (of 3 total)
  • There is also an issue with url redirecting. I’ve noticed that the events archive url: http://example.com/events/event is redirected to http://example.com/2012/05/events which 404s.

    Unfortunately I’ve not been able to locate this bug yet.

    Plugin Author Inigo Gonzalez

    @inigoini

    Hi Stephen,

    I’m going to take a look…

    Plugin Author Inigo Gonzalez

    @inigoini

    Hi Stephen,

    The issue is with the “flush_rules” function call.

    Best regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: TheCartPress eCommerce Shopping Cart] CartPress causing 'no posts found' on custo’ is closed to new replies.