• Resolved emarkhauser

    (@emarkhauser)


    About a year ago I had placed the [query slug=”…”] shortcode on a page and the query showed up perfectly. We recently noticed that the query is no longer showing up on the page even though the shortcode wasn’t touched. I checked the settings for this particular query and everything looks great, even the preview. Do you know if I’ve missed a general setting of some kind?

    https://www.ads-software.com/plugins/query-wrangler/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Having the same issue. Query Wrangler shortcodes working fine before, content recently disappeared “on its own.” Site is running PHP 5.6. When I am working in the Query Wrangler interface I can see the content on preview but I can no longer see it on the live site.

    Plugin Author Jonathan Daggerhart

    (@daggerhart)

    Interesting. I’m not sure what the issue could be, but since there are two of you with the problem we might can narrow it down.

    Please go through the following list and provide the results here:

    1. Do you have any query wrangler templates in your theme associated with the missing query?
    2. On the page with the missing query, look at the source for any query wrangler html on the page. Anything at all that indicates the query is actually being executed.
    3. Make a new query with the default settings, and test its shortcode on a new page?
    4. If the new query with default settings works, please list here the settings you are using on the original query that stopped working.
    5. List other plugins you have installed. I’m not certain, but perhaps you share a similar plugin that is involved in the problem. I’m especially interested in caching related plugins, or plugins that otherwise affect the content on a page. For that matter, if your host does some caching on their own, please include that info.

    Hopefully this will get us close to an answer.

    Thanks for the reports,
    Jonathan

    Jonathan,
    Thanks for your response, and a great plugin!

    1. not using any Query Wrangler templates in the theme.

    2. Looking at the source code, I can see the textwidget where Query Wrangler is supposed to be executing, and its not coming up there.

    3. I created generic Query Wrangler queries, they do not show up anywhere on the site in widgets pages etc. The shortcode also does not appear.

    4. Can’t get any query to work. But they work inside the Query Wrangler preview.

    5. I installed the plugin called “list plugins” and it spit this out

    Advanced Menu Widget (0.3)
    Busted! (1.4)
    Contact Form by BestWebSoft (3.97)
    Custom Content Shortcode (3.2.9)
    Genesis Simple Edits (2.1.4)
    Huge IT Slider (3.0.6)
    Jetpack by WordPress.com (3.8.2)
    List Plugins (1.4.3)
    Meta Slider (3.3.6)
    Nav Menu Images (3.2)
    Query Wrangler (1.5.38)
    Regenerate Thumbnails (2.2.6)
    Responsive Lightbox (1.6.6)
    Scroll To Top (2.1)
    ShareThis (7.1)
    Simple No Comment (1.0)
    Under Construction (1.16)
    W3 Total Cache (0.9.4.1)
    Widget Context (1.0.3)
    Showhide

    Plugin Author Jonathan Daggerhart

    (@daggerhart)

    Hi Noah,

    There is definitely a conflict with Custom Content Shortcodes. I’ll provide a compatibility option in query-wrangler’s next release, and contact the creator of that plugin.

    In the meantime if you’re feeling brave, you can edit query wrangler to use a different shortcode.

    First, edit query-wrangler/includes/shortcodes.php ~ line 38. Change add_shortcode( 'query', 'qw_single_query_shortcode' ); to say add_shortcode( 'qw_query', 'qw_single_query_shortcode' );

    Second, go to the page where you have embedded the the query wrangler shortcode and change it to [qw_query slug="..."]

    I’ll try to release an update this weekend.

    Thanks,
    Jonathan

    Thanks Jonathan–that worked. It was indeed a conflict with Custom Content Shortcodes. Good to know that for the future. I disabled it and the content of QW came back up. Thanks!

    I have another site in which Query Wrangler is also not working. But the Plugins are a little different. Do you know about any conflicts with these?

    Thanks so much for your help!

    Advanced Custom Fields (4.4.5)
    Advanced Custom Fields: Date and Time Picker (2.0.18.1)
    Advanced Menu Widget (0.3)
    AJAX Hits Counter + Popular Posts Widget (0.9.9)
    Category Posts in Custom Menu (1.2.1)
    Category Posts Widget (4.1.4)
    Custom Post Widget (2.8.4)
    Disable Comments (1.3.2)
    Display Posts Shortcode (2.5.1)
    Genesis Simple Menus (0.3.0.1)
    Hello Dolly (1.6)
    Intuitive Custom Post Order (3.0.7)
    Jetpack by WordPress.com (3.8.2)
    Lazy Load (0.6)
    List Plugins (1.4.3)
    PB Responsive Images (1.4.2)
    Post Content Shortcodes (0.5.6)
    Query Wrangler (1.5.38)
    Regenerate Thumbnails (2.2.6)
    Related Posts Slider (2.1.1)
    Responsive Lightbox (1.6.6)
    Scroll To Top (2.1)
    Simple Image Sizes (3.0.9)
    Under Construction WP (1.0.2)
    W3 Total Cache (0.9.4.1)
    WP-Optimize (1.8.9.10)
    WP-ShowHide (1.04)
    Yet Another Related Posts Plugin (4.3.1)
    Nav Menu Images (3.2)
    NextGEN Gallery by Photocrati (2.1.23)
    NextGEN Gallery Optimizer (2.1.2)
    Post Content Shortcodes (0.5.6)
    Yet Another Related Posts Plugin (4.3.1)

    Thread Starter emarkhauser

    (@emarkhauser)

    As a preface, I want to say how great this plugin is, Jonathan! I’m both a Drupal and WP developer and it was great to see you develop this “Views” functionality in WP. Keep up the great work!

    I have “Custom Content Shortcode” installed too, so that may be the same issue that NoahFischer is experiencing too. However, because he is also experiencing this on his other site, I’ll still answer Jonathan’s original 5 questions:

    1. Do you have any query wrangler templates in your theme associated with the missing query?

    No

    2. On the page with the missing query, look at the source for any query wrangler html on the page. Anything at all that indicates the query is actually being executed.

    No, there’s not even an empty div. However it shows up in the preview in the Query Wrangler admin page for this query.

    3. Make a new query with the default settings, and test its shortcode on a new page?

    Doesn’t work either.

    4. If the new query with default settings works, please list here the settings you are using on the original query that stopped working.

    N/A

    5. List other plugins you have installed. I’m not certain, but perhaps you share a similar plugin that is involved in the problem. I’m especially interested in caching related plugins, or plugins that otherwise affect the content on a page. For that matter, if your host does some caching on their own, please include that info.

    Category Tag Pages
    Adds categories and tags functionality for your pages.
    Version 1.0 | By Marzio Carro | View details

    Collapse-O-Matic
    Collapse-O-Matic adds an [expand] shortcode that wraps content into a lovely, jQuery collapsible div.
    Version 1.6.15 | By twinpictures, baden03 | View details
    There is a new version of Collapse-O-Matic available. View version 1.7.0 details or update now.

    CSS & JavaScript Toolbox
    CJT Plugin for WordPress to easily add custom CSS and JavaScript to individual pages
    Version 8.0.4 | By Wipeout Media | View details
    There is a new version of CSS & JavaScript Toolbox available. View version 8.1 details or update now.

    Custom Content Shortcode
    Display posts, pages, custom post types, custom fields, files, images, comments, attachments, menus, or widget areas
    Version 3.1.5 | By Eliot Akira | View details
    There is a new version of Custom Content Shortcode available. View version 3.2.9 details or update now.

    Cyclone Slider 2
    Create and manage sliders with ease. Built for both casual users and developers.
    Version 2.10.1 | By Nico Amarilla | View details

    Fast Secure Contact Form
    Fast Secure Contact Form for WordPress. An easy and powerful form builder that lets your visitors send you email. Blocks all automated spammers. No templates to mess with. Settings | Donate
    Version 4.0.38 | By Mike Challis, Ken Carlson | View details
    There is a new version of Fast Secure Contact Form available. View version 4.0.39 details or update now.

    iThemes Security
    Protect your WordPress site by hiding vital areas of your site, protecting access to important files, preventing brute-force login attempts, detecting attack attempts and more.
    Version 5.1.0 | By iThemes | View details | Get Support
    There is a new version of iThemes Security available. View version 5.1.1 details or update now.

    Ninja Forms
    Ninja Forms is a webform builder with unparalleled ease of use and features.
    Version 2.9.28 | By The WP Ninjas | View details
    There is a new version of Ninja Forms available. View version 2.9.33 details or update now.

    P3 (Plugin Performance Profiler)
    See which plugins are slowing down your site. Create a profile of your WordPress site’s plugins’ performance by measuring their impact on your site’s load time.
    Version 1.5.3.9 | By GoDaddy.com | View details

    Query Slideshow
    Deactivate | Edit
    Query Slideshow is a plugin that adds ‘Slideshow’ as a Template Style for Query Wrangler.
    Version 1.2 | By Jonathan Daggerhart | View details

    Query Wrangler
    Query Wrangler provides an intuitive interface for creating complex WP queries as pages or widgets. Based on Drupal Views.
    Version 1.5.38 | By Jonathan Daggerhart | View details

    Redirection
    Manage all your 301 redirects and monitor 404 errors
    Version 2.4.3 | By John Godley | View details

    TinyMCE Advanced
    Enables advanced features and plugins in TinyMCE, the visual editor in WordPress.
    Version 4.2.5 | By Andrew Ozz | View details

    Wordfence Security
    Wordfence Security – Anti-virus, Firewall and High Speed Cache
    Version 6.0.20 | By Wordfence | View details
    There is a new version of Wordfence Security available. View version 6.0.22 details or update now.

    WP Super Cache
    Very fast caching plugin for WordPress.
    Version 1.4.6 | By Automattic | View details
    There is a new version of WP Super Cache available. View version 1.4.7 details or update now.

    Yoast SEO
    The first true all-in-one SEO solution for WordPress, including on-page content analysis, XML sitemaps and much more.
    Version 2.3.5 | By Team Yoast | View details
    There is a new version of Yoast SEO available. View version 3.0.7 details or update now.

    Plugin Author Jonathan Daggerhart

    (@daggerhart)

    Thanks emarkhauser,

    I suspect it’s the same issue as Noah.

    I’ve pushed an update that includes a new setting in query wrangler. If you enable “Shortcode compatibility” in the QW Settings, it will use the qw_query shortcode instead of query.

    Then edit your shortcodes to [qw_query slug="..."].

    Let me know if you run into any problems, and thanks again for the report,
    Jonathan

    Thread Starter emarkhauser

    (@emarkhauser)

    Works perfectly! Thanks so much Jonathan for your quick turn around time on this!

    Cheers,
    Erik

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Shortcode is not working when inserted on page’ is closed to new replies.