WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Paging custom fields results (3 posts)

  1. SteveStall
    Member
    Posted 2 years ago #

    Hi,

    I have a post type that is manipulated with magic-fields plugin. The post has a category called artist. In this post there is the possibility of editing 6 text fields to show videos.

    In my website I have a page called media. This page basically lists all videos from posts belonging to category 'artist'. If first artist from query result contains 6 videos, then the list will have those 6 videos showing first and then continuing with next artist/post. The page shows only 12 results, therefore a paging is required. Problem is that I can't page artist post query because the result depends on how many videos each artist has.

    Can anyone help me on this issue?

    Thanks
    Peter

  2. vtxyzzy
    Member
    Posted 2 years ago #

    Here is an article that describes one way to paginate an array:

    http://wordpress.mcdspot.com/2010/11/25/pagination-using-paginate_links/

  3. SteveStall
    Member
    Posted 2 years ago #

    Thanks ;)

Topic Closed

This topic has been closed to new replies.

About this Topic