WordPress.org

Ready to get started?Download WordPress

Forums

Job Manager
[resolved] Custom text on each category page (4 posts)

  1. petebocken
    Member
    Posted 3 years ago #

    Currently you can add text before or after a category page, but then the same text is displayed on all category pages. How would I go about putting custom text on individual category pages?

  2. petebocken
    Member
    Posted 3 years ago #

    I got this working for me. I created my own template files called "category-categoryname.php" then just customized the template. Then when you go to domain.com/jobs/categoryname, that template will load.

  3. 3ring
    Member
    Posted 2 years ago #

    Hey @petebocken - can you please describe this process in a little more detail?

    Where did you put the php file you mention?
    What template did you copy - ie: what is in the template file?
    How were you able to add text to each specific category page?
    Howd you get the new category page to only display jobs from that category?

    Thanks!!

  4. petebocken
    Member
    Posted 2 years ago #

    PHP file is in the root of the theme directory.

    For mine, I have a job category called "Central Office". I created the category in the job admin settings with slug "centraloffice".

    The php template file is called "category-centraloffice.php".

    I copied my page.php template file and then customized it for each job category (adding specific text for each job category).

    The Job Manager plugin looks for templates with "category-categoryname.php". So if you have category slug setup with "centraloffice" and a php template file called "category-centraloffice.php" it will use that php template file for that job category page.

    So if you go to "domain.com/employment/centraloffice" (i've renamed my URL path for the jobs page to employment). It will then display only jobs in that category on your custom php template.

    Hopefully that all makes sense!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic