• Hi there. I’m trying to use Customizr along with a plugin called Ignition Deck (am using Ignition Deck Crowd Funding, which is not the free one but one which requires a licence).
    By default ID displays its projects on a project page however when using Customizr I see a bunch of code (image).

    I asked on the plugin help forum but their response was that I should try a different theme as “some themes don’t follow modern WP development standards”. The plugin does work with a different theme but I’d rather use Customizr 🙂

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi shanodin
    a link to your site?
    I’m pretty blind without seeing the plugin code though, but you might want to try if adding the following to your child-theme functions.php might change anything?

    add_action('pre_get_posts', 'id_comp', 9999);
    function id_comp($query){
      if ( ! is_admin() && $query -> is_main_query() && ! is_category() && $query->get('post_type') == 'ignition_product' )
        $query->set('is_singular', true);
    }

    or maybe :

    add_filter('template_include', 'id_comp', 0 );
    function id_comp( $template ){
      global $wp_query;
      if ( ! is_admin() && ! ( is_archive() || is_search() ) && $wp_query->get('post_type') == 'ignition_product' ) {
        $wp_query->is_singular = true;
      }
    
      return $template;
    }

    Thread Starter shanodin

    (@shanodin)

    Hi d4z_c0nf

    Thanks for your help. Unfortunately it’s a dev site so I can’t give you the link.

    I tried each of those codes in turn but sadly neither worked. I think I’m going to have to bite the bullet and use a different theme, unless the theme devs have any ideas.

    I see, well maybe knowing what kind of post_type is that could be useful.
    But fine, do what you think is better for you 😉

    Hi @shanodin
    does this happen also with the latest version ?

    If you’re still interested..
    try this other code :

    add_action('wp', 'id_comp', 0);
    function id_comp(){
        global $post, $wp_query;
        if ( ! is_admin() && ! ( is_archive() || is_search() ) &&
            isset($post->post_type) && $post-> post_type == 'ignition_product' )
            $wp_query->is_singular = true;
    }

    Thread Starter shanodin

    (@shanodin)

    Hi d4z_c0nf

    I can confirm it does happen with the latest version (unless there has been an update in the last 30 minutes or so that I’m not aware of!)

    Sadly that code isn’t working either. I’ve also tried using the plugin’s shortcodes (as their extremely unhelpful support suggested) but these also don’t seem to work.

    I very much appreciate your continued efforts to help out 🙂

    Hi shwnodin,
    well don’t know if you downloaded the version at the link I gave you, it’s 3.3.12 already pushed on wp, though not live yet (it depends on the theme reviewers).

    Your issue with that plugin, is that, for what I can understand from the image you linked, Customizr recognizes that “content” as a list of posts. This generally happens with custom post types (so post_type != post or page ) and when their not singular ( see is_singular ) .
    You can see it with google-chrome inspect element or firebug and see if in the article tag you have a section with the class “entry-summary”.

    So what I was trying to do was to force the $wp_query is_singular var to true when the post type is ‘ignition_product’ .
    I used a code similar to the last one with another plugin which had a similar problem.
    In your case it’s not working for several reasons that could be:
    a) the post_type isn’t ‘ignition_product’
    b) I’m hooking that function too early (I cannot get the post_type).
    c) dunno

    I’m sorry isn’t working,
    but if you want you can make some tests to see what’s the problem.. let me know

    Sorry to hear that you aren’t having good luck with our support. We do try our best to resolve every customer issue, even when they aren’t necessarily caused by our plugin. In the case of this theme, it sounds like it might be querying data in a way that isn’t standard, in which case the resolution will probably require a bit of patience while we go through trial and error.

    I can confirm that yes, ignition_product is our CPT name.

    When we ask you to try another theme, that usually means we want you to swap really quickly to see if the issue resolves itself. If it does, then we know the problem lies somewhere on the theme side, which allows us to start looking with more precision.

    You might try hooking later (11 instead of 0) so you can catch the query after the theme has done its work. You might also try $query->set during the pre_get_posts hook.

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

The topic ‘Conflict with Ignition Deck’ is closed to new replies.