Custom Function

  • 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.

  • You did not specify a blog address or reason for posting when you created this topic.

    This support forum is for blogs hosted at WordPress.com. If your question is about a self-hosted WordPress blog then you’ll find help at the WordPress.org forums.

    If you don’t understand the difference between WordPress.com and WordPress.org, you may find this information helpful.

    If you forgot to include a link to your blog, you can reply and include it below. It’ll help people to answer your question.

    This is an automated message.

  • The topic ‘Custom Function’ is closed to new replies.