Here is an example of how you can use Articles Field.
Say you have a website about Movies. You have 3 main categories with articles: one for the "Movies", one for the "Actors" and one for the "Directors".
On each Movie page you want to list the Actors and the Director(s) associated with that movie, linking to their respective article page:
- Create two custom field instances of the "Articles" Field, and assign them to appear on articles of the "Movies" category.
- Name one custom field "Directed by" and set the
Filter by Categoriesto the "Directors" category.
- Name one custom field "Cast", and set the
Filter by Categoriesto the "Actors" category.
Now when you create/edit a Movie article, you will see these two custom fields. One will list all the "Directors" articles and the other all the "Actors" articles. You can select the actors and the director(s) from those list fields.
When you go to the Movie article on the frontend of your website, you will now see the output of the two custom fields. Each will list the selected articles (actors and directors) as clickable titles. Clicking on one of these will take you to the respective article.
And what if in each Actor page you want to automatically show all the Movies where the actor starred in? You can do this with the Pro version of Articles Field:
- Simply create an instance of the "Articles - Linked" Field, name it "Starred in", and assign it to appear on articles of the "Actors" category.
- In the
Linked Fieldssetting, select the "Cast" custom field.
This will show in the frontend a list of movies that are linked to an Actor via the "Cast" field of the "Movies" category. Now when you create/edit an Actor article, you have the ability to switch on a field to show the linked movies articles.