• Resolved Poutine

    (@8sbkgr)


    Hello, I’m having trouble enabling pagination using pods shortcode.
    I’m trying to display a list of videos, and the videos show, and pods paginations shows ‘1’, but all content is listed in one page, instead of forming next page.

    I used shortcode : <p>[pods name=”playlist” orderby=”post_date” pagination=”true” limit=”10″ where=”category.name=’featured'” template=”playlist-template-beforeafter”]</p>

    And the template for this is:
    [if related_video]
    [before]<ul class=”listing-wrap”>[/before]
    [each related_video]
    <li class=”listing-panel”>
    <div class=”listing-art”>
    {@post_thumbnail}
    </div>
    <div class=”listing-content”>
    <h2 class=”listing-title”>{@post_title}</h2>
    [post_date]
    <p class=”listing-footer-more”>more</p>
    </div>

    [/each]
    [after][/after]
    [/if]

    The end result shows pods pagination enabled and showing ‘1’at the bottom of the output page, without actually limiting to 10 pod items. All

    • items are output in listing-wrap container without creating new page, and class pods-pagination-advanced is shown below the list items. What am I doing wrong? Is it a conflict with the theme? I’m using Genesis-sample child theme with custom css. What am I doing wrong?

      And is there another field that I can use instead of “guid” to link to post url?
      I also tried post thumbnail url to background-image: url(“{@post thumbnail url”), but the url won’t properly load. It gives me http: arbitrarywebsiteaddress.com/wp-uploads/postthumbnailurl-with-a-space-after-http:-instead-of-the-doubleslash.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @8sbkgr

    From what I see in your tempalte is that you are outputting a lot of <ul> tags (one for each item without closing them. Could that be your issue?

    EDIT:

    And is there another field that I can use instead of “guid” to link to post url?

    Yes, please use {@permalink}. Never use guid!!

    Cheers, Jory

    • This reply was modified 4 years, 5 months ago by Jory Hogeveen.
    Plugin Author Jory Hogeveen

    (@keraweb)

    Closing due to no reply.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Enabling pagination in shortcode’ is closed to new replies.