• Hi, I have a site that is using custom fields to add images and text that then goes to an index page that shows artist name. I need to have the artist names when clicked on go to a holding page that will show each painting by that artist and when each name is clicked on goes to the pages that are made with the custom fields.
    So the first page is: https://presencedelart.org/?page_id=23
    I want each link to go to a page that looks like this: https://presencedelart.org/?page_id=52
    And on this page will have links to specific pieces so that when someone clicks on a link they get something like this: https://presencedelart.org/?page_id=75
    I’m not sure of the best way to do this. Each artist needs to have their own page as they will each have many different pieces.
    I know its a lot but any help would be appreciated.

    bunday

Viewing 3 replies - 1 through 3 (of 3 total)
  • If you do not have too many artists, you could make a category for each artist. Each painting would be assigned the category for its artist. Then you would show excerpts (or customize the display) for the category.

    So, the index page lists artists (categories). When an artist is clicked, it brings up the artist’s category page showing all the paintings in that category. When a painting on that page is clicked, it will bring up the single page for that painting.

    If your content is going to be fixed (if this is not a blog) you may concider using pages and subpages for this. You can show a parent-child page index instead of using posts, categories, and custom feilds. In other words,

    (top page)
    All Artist’s Page -list of all artists.

    each of which links to:

    (child of top page)
    Individual Artist’s Page (list of all off an individual artist’s Images.

    each of which links to:

    (child of child of top page)
    Single Art Image.

    But the simplest way would be to use a wordpress gallery for each artist, then just have a static page with a list of all artists, each name liked to the respective gallery. however this only works if you use thumnails.

    Thread Starter bunday

    (@bunday)

    Thanks, I’ll try a few of these. What I was hoping for but it may not work was to have this set up so that when these pages are added the php code would pass the info to the correct pages or places. This may be a good work around but ultimately it would be great to code in some php so that once the customs fields are filled in and a page is called the correct information is then filtered to the correct pages.
    I appreciate your input

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Need help understading how to use PHP on a page’ is closed to new replies.