• Resolved danjbh

    (@danjbh)


    By default it would appear the plugin is relying on the ‘archive.php’ to display the job-industry specific jobs. Is there a way I can name a file to display these categorised jobs, as I need the archive file for the main blog.

    I tried to create ‘category-wpbb_jobs.php’ but this had no effect.

    I have tried:

    taxonomy-wpbb_job.php
    taxonomy-wpbb_job_industry.php
    archive-wpbb_job_industry.php
    category-wpbb_job.php
    category-wpbb_job_industry.php

    • This topic was modified 7 years, 6 months ago by danjbh.
Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter danjbh

    (@danjbh)

    I would have thought the archive-wpbb_job.php file I create would override the ‘archive.php’ for anything broadbean related? Is this not the case?

    Plugin Author Mark Wilkinson

    (@wpmarkuk)

    I would recommend you take a look at the template hierarchy for which files you might want in your theme to control the view of certain things. This is a good resource:

    https://wphierarchy.com/

    Jobs are a post type named wpbb_job
    Job industry is a taxonomy named wpbb_job_industry

    Thread Starter danjbh

    (@danjbh)

    Hi Mark,

    I have been using that as a resource, but no matter what I do the file just routes straight to archive.php. I am aware the taxonomy is named that but you have kind of just defected my question a little.

    Can you just advise me on how to avoid wordpress using archive.php do I need to call the file something like:

    taxonomy-wpbb_job_industry.php

    I have literally tried everything any hep would be great right abaout now.

    • This reply was modified 7 years, 6 months ago by danjbh.
    Thread Starter danjbh

    (@danjbh)

    Even if I create taxonomy.php is still falls back to archive or index.php – I know my hierarchy works because I am using it elsewhere on the theme.

    Thread Starter danjbh

    (@danjbh)

    Are you able to help me at all Mark?

    Plugin Author Mark Wilkinson

    (@wpmarkuk)

    It looks like (from my included mentions on Twitter) that you have been getting some kind assistance from Tom. If taxonomy.php is not being used for taxonomy term archives I would suggest deactivating some of your plugins or trying with the default 2017 theme to do some debugging.

    > I am aware the taxonomy is named that but you have kind of just defected my question a little

    I was doing my best to assist you with learning the template hierarchy, which is the correct way to use the appropriate template file – sorry if I didn’t answer correctly ??

    Other sites I am working on at the moment are working correctly using the template hierarchy e.g. taxonomy-wpbb_job_industry.php for showing all those taxonomy term archive files.

    Thread Starter danjbh

    (@danjbh)

    Mark, thanks for the reply I appreciate your time on this ??

    I figured out that the issue was with a conflicting script from another plugin so I sincerely apologise – if you could shed some light on my other question that would be great ?? I just need a simple way to change the slug of ‘job-industries’ to just the category name with -jobs appends on to the slug…

    Thread Starter danjbh

    (@danjbh)

    This has been resolves. Thanks again for all your help Mark – I am starting to feel like I live and breath this plugin!

    Thanks again!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘job-industry/category-name change template’ is closed to new replies.