• I have created a custom post type and I want to show posts (as a block ideally) in an another type of a post type (ideally again) or a page.

    In more details, I have created a ‘works’ post type and as a field of that post type I have created another post type ‘artists’. So for every work there is an artist.

    Ideally I would like to show an artist post and bellow show all the work posts related to the artist.

    Any idea how I could approach this?

    Also as a long-shot: in the post view, when you see the previous and next post below, is there a way to have those post follow a custom order?

    Thank you time and efforst

Viewing 1 replies (of 1 total)
  • Theme Author Anders Norén

    (@anlino)

    Hi @markdimi,

    My recommendation would be to create a child theme, copy singular.php from Eksell to the child theme and rename it single-artist.php (replace artist with the name of your artist post type). Next, modify the template file to output the works related to the artist in the bottom of the content.

    You’ll have to use some sort of metadata plugin, like Advanced Custom Fields, to select the works related to each artist as well.

    For the long-short question: The previous/next links are based on the publication date of the posts, same as in the other topic you created. They’ll be listed in chronological order based on the publication date, so to change the order, you change the date.

    — Anders

Viewing 1 replies (of 1 total)
  • The topic ‘Add a block of posts in a page or in another post’ is closed to new replies.