• Resolved vgevge

    (@vgevge)


    The shortcode for this plugin is not working, but I have found that the Widget Plugin ( https://ww.wp.xz.cn/plugins/widget-shortcode/ ) using the ID of one of my top posts widgets works, but displays a previous cached version of another top posts widget.

    The “widget plugin” shortcode with a top posts widget ID displays an old cached version of a different top posts widget. See Top Recommended Equipment here: http://www.thevideographyblog.com . I have 2 Top Posts Widgets. One is restricted to only the category Recommended Equipment, Camcorders, and one is restricted only to Recommended Equipment. When I display these widgets in a sidebar, they work correctly, showing 3 top posts for Recommended Equipment, and 1 top post for Recommended Equipment, Camcorders (see the sidebars here http://www.thevideographyblog.com/full-hd-camcorder-best-image-quality/ ). However, when I use the “Widget plugin” shortcode with the ID of the “Recommended Equipment Top Posts Widget” on the home page, I am expecting to see 3 results, just like in the sidebar of the camcorder page. Instead, I am getting only 1 result, the same as that of the other Recommended Equipment, Camcorders widget! I have tried changing the IDs, and I am sure that my widget ID is correct. Regardless of which widget ID that I use, it is always displaying the 1 link from the Recommended Equipment, Camcorders widget, instead of the widget that I am using the ID for. It appears that your plugin is caching results, and that it only updates for widgets in sidebars, but not for shortcode, PHP, or for “Widget plugin” shortcode.

    This is the plugin that I am using to display Top Posts widgets on my page:
    https://ww.wp.xz.cn/plugins/widget-shortcode/
    The shortcode looks like this using the Widget ID of the Top Posts widget:
    [widget id=”dsgnwrks_google_top_posts_widgets-35″ title=”0″]
    It displays links (as you can see on the homepage under Recommended Equipment). However, it shows a cached version of a different widget (Recommended Equipment, Camcorders), instead of the 3 links for the Widget ID that I have given. I know that my widgets are setup correctly, as you can see both displaying correctly on the Camcorders page. They work in a sidebar, but not with the “Widget plugin”.

    Please tell me how to fix this, because I want to use top posts widget on my pages, not just in sidebars. I want to display it with shortcode, PHP, and/or the “Widget Plugin”. If you can give me a simple PHP command, such as a function to call that would reset the widget, that would solve the problem. For instance, if you could give me a PHP function like “reset_top_posts_widget(‘dsgnwrks_google_top_posts_widgets-35’);”
    then I could call that PHP function first, followed by the shortcode
    [widget id=”dsgnwrks_google_top_posts_widgets-35″ title=”0″]
    and I should see all 3 links displaying as I would expect, and as the sidebar is correctly doing. Since the sidebar works, it should be very easy, and very simple to solve this, if you provide a simple function to reset and/or update the shortcode via ID — just like the sidebar is doing.

    Victor

    https://ww.wp.xz.cn/plugins/google-analytics-top-posts-widget/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Shortcode not working’ is closed to new replies.