• Resolved gabriela67

    (@gabriela67)


    Hi,

    I want to use the following shortcode to display certain projects (custom post type) with pagination in a person’s bio page (another custom post type).

    [blocksy_posts post_type=”project” post_ids=”4196,5060,2664,4831,1110,505,1740,1047,5614,763,599,243,1026,493,796,954,913,4060,1893,4858,5071,7563,7595″ limit=”3″ has_pagination=”yes”]

    The shortcode works fine without pagination. When I turn on pagination it just loads again and again the same first 3 projects.

    I tried placing the same shortcode on a default WP page and it worked fine so it seems the issue is only when used on custom post type single page.

    Any help would be greatly appreciated.

    Thank you,
    Gabriela

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hi @gabriela67 I can see you are limiting posts to “3”, try removing the limit attribute, shortcode will inherit the post count via customizer.

    Thread Starter gabriela67

    (@gabriela67)

    That didn’t work either.
    1) It didn’t inherit the post count from customizer, it defaulted to 5 (which is the shortcode default limit).
    2) It still loads the same items again and again when I click load more (I have it setup as load more instead of standard pagination)

    Thank you,
    Gabriela

    • This reply was modified 2 years, 5 months ago by gabriela67. Reason: typo
    Theme Author creativethemeshq

    (@creativethemeshq)

    Hello @gabriela67,

    I just double tested the shortcode with a custom post type and everything works fine, please see this video – https://d.pr/v/JuoV5b

    How did you exactly created your CPT?
    Did you created it with the help of a plugin like Meta Box, Custom Post Type UI or with custom code?

    Thread Starter gabriela67

    (@gabriela67)

    I used Custom Post Type UI.

    Theme Author creativethemeshq

    (@creativethemeshq)

    Honestly I’m not sure what happens on your end, it works fine on my install and you can see that in the video I posted earlier.

    Could you please make a backup of your website with the help of WPVivid plugin, download the zip files and send them to us at [email protected] so we could take a closer look and investigate your setup?

    Thread Starter gabriela67

    (@gabriela67)

    Your video shows the shortcode placed in a page, is that correct? Placed in a page work for me too. When I place it in another custom post it doesn’t.

    Theme Author creativethemeshq

    (@creativethemeshq)

    Yes, that’s a page.
    In what custom post are you exactly posting it?

    Please be more descriptive or send us your backup so we could investigate your setup…

    Thread Starter gabriela67

    (@gabriela67)

    I want to use the shortcode to display certain projects ( PROJECTS custom post type) with pagination, in a person’s bio page (PEOPLE custom post type).

    I cannot provide a backup or access without my client’s approval. I will try to setup a demo environment where I can provide you full access.

    Theme Author creativethemeshq

    (@creativethemeshq)

    @gabriela67 I don’t need access to your live site or a demo site.

    A backup of your setup will be enough, this way I would be able to replicate the same setup on my local environment…

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘blocksy_posts pagination not working when placed in a custom post type page’ is closed to new replies.