I have a Fruit page with multiple fruit products listed. (ie Apples, Oranges, Pears, Peaches) Each individual fruit, let's say Apples, has its own page. The Apples page will display all posts from category Apples.
The Apple post on the Fruit page links directly to the post and not to the Apple page . I am thinking I need to edit my page template file with a php query that says something like:
<Check post title, Look for page with same name, Show page name>
I would place the assumed code above in a link in my page template
Ultimately something like this:
<?php the_title(); ?>
Can anybody help me out? Thanks.