Support

Account

Home Forums Front-end Issues Displaying relationship field

Unread

Displaying relationship field

  • Hi folks

    This problem has been annoying me for a while..

    I have a custom relationship field where users can add pages, posts and some other custom post types to a page, I’d then like to display the related items on the page front end.

    I can do this just by outputting the field contents, no problem – but what I’d ideally like to do is have a list with headings and then the related items beneath, eg.

    Pages
    – Page One
    – Page Two

    Posts
    – Post One
    – Post Two

    etc..

    I can’t work out how to do a query so I can just output related items with (for example) post_type = page

    Any help would be much appreciated.

    Thanks
    Ben

Viewing 1 post (of 1 total)

The topic ‘Displaying relationship field’ is closed to new replies.