• I have been struggling with trying to customise my category and home pages, and I’m wondering if someone can give me some advice.

    My WordPress site (https://www.pauldoeman.com) has 5 or 6 categories, I’d like to be able to customise them so that I have some static content (text and images) at the top, whilst the latest posts for those categories appear below as they are published. I’d like to do the same thing with the Home page.

    I’ve battled with the category page management panel in the ‘category pages’ plug-in, trying to link pages with categories, to no avail – I get 404 errors when clicking on the ‘view this category page in your browser’ button.

    Does anyone know how I can get what I’m trying to achieve?

Viewing 1 replies (of 1 total)
  • I was able to do this at BluegrassMiataClub.com using the technique below. Look at the menu choices for ‘Event Talk’, ‘For Sale’, ‘Good Roads’ for some examples.

    • Create a template for the page. I called mine OneCategory.php.
    • In the template, display the content of the page first. Then in a second loop, display the posts in the desired category.
    • In order to use the same template for many categories, I set a custom field to the category to be shown on the page.
    • Because I use multiple categories in a post, and WP will not stay in category in single.php for a post with multiple categories, I had to add an argument to the post link and check for it in single.php.

    If you will email me using the Contact Us form under the About menu on the above site, I will be glad to share the code.

Viewing 1 replies (of 1 total)
  • The topic ‘Customised category pages’ is closed to new replies.