Enabling pagination in shortcode
-
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.
- 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?
- The topic ‘Enabling pagination in shortcode’ is closed to new replies.