Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #4838

    Hi,

    I’m using Toolset and the counter works fine in my loop of post but i can’t see the counter on the custom post type single page.

    I’m using the shortcode.

    Any idea?

    Thanks

    #4855
    Bartosz
    Keymaster

    Is that CPT enabled in plugin Display settings?

    As far as I know Toolset creates standard WordPress post types so it should work as for manually registered CPT’s.

    #4857

    Hi Bartosz,

    Yes the CPT is added, it work in my views loop and count all visits, however i just can’t display the views counter to the single CPT page.

    Was using https://wordpress.org/plugins/baw-post-views-count/ this counter as a test (we are in dev mode right now) and it worked.

    Thanks

    #4858
    Bartosz
    Keymaster

    Do you try to manually display the shortcode in a theme, or you’ve just added the shortcode to your post content?

    #4859

    I added the shortcode to the content template, Toolset include a Views plugin where we can create template for single CPT and more. This way there no need to play in the theme code.

    #4860
    Bartosz
    Keymaster

    Ok, I wonder how does this behave. Basically the shortcodes should be echoed like this:

    echo do_shortcode('[shortcode]');

    Is there any option you can try to use shortcode (or functions) in theme files?

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.