• Resolved Wayne

    (@waynep16)


    Hey dude, hope you are well.

    Using this in conjunction with TOTAL as always and the post types have a cool way to adjust the page title and also specify the MAIN PAGE (handly to ensure breadcrumbs work accordingly) but for custom Taxonomies, these 2 settings don’t exist. (I can change the page header type but not a custom title)

    Is that able to be added as well as the ability to change the main page associated with the taxonomy so on the archive pages the breadcrumbs work?

    Thanks

    Wayne

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author wpexplorer

    (@wpexplorer)

    Hi Wayne,

    * Generally you would just want the taxonomy archives title to display the name of the current term, I can’t imagine a scenario where you would want to have a fixed text for all taxonomy terms…Perhaps what you are looking to do is actually something like this…. “Category: {{title}}” where you can have fixed text but also display the dynamic term name?

    Is that what you were looking to do?

    * In terms of setting a “Main Page”. By default the theme will grab the Post Type archive associated with the first post on the taxonomy. But if you have disabled the post type archive for your custom post type I can see how it could cause issues.

    Maybe I should add a setting to the Post Types so you can select a template to use for the post type archive, this way you don’t have to use a separate page and you can keep the auto archive enabled so things like the breadcrumbs will just work automatically. I’ll put this on my todo list to look into…

    Anyway…I added both options for the upcoming update. If you want here are the updated files. Extract and replace via FTP: https://a.cl.ly/Wnu0JPvg

    – wpex-breadcrumbs.php (Total/inc/lib)
    – title.php (Total/inc/functions/frontend/)
    – post-types-unlimited.php (Total/inc/integration)

    If you have any issues let me know.

    – AJ

    ps: It would also be possible if wanted to replace the whole page header title with a template using a little code – https://wpexplorer-themes.com/total/snippets/page-header-template/ – you would just use is_tax to ensure you are only defining a template_id for your specific taxonomy. Just incase you need this type of thing ever in the future ??

    Thread Starter Wayne

    (@waynep16)

    Perhaps what you are looking to do is actually something like this…. “Category: {{title}}”

    #

    You know me so well because yes, that’s exactly what I’m trying to do ??

    For example, we have an advice portal and the advice is for Landlords but the page title just says “Landlord” because the taxonomy name is singular. So I want to change this to “Advice for {title}s”.

    Thank you for the files, will test and report back!

    Thread Starter Wayne

    (@waynep16)

    UPDATE – works an absolute dream and now gives FULL flexibility across taxonomies. BEAUTIFUL update.

    Although what would be good is to be able to customise the pagination options per taxonomy page? We can specify post count and change the card but not add things like lazy load to show additional posts.

    • This reply was modified 3 years, 7 months ago by Wayne.
    Plugin Author wpexplorer

    (@wpexplorer)

    Awesome ??

    I have on my todo list to add ability to choose load more, infinite scroll and next/prev pagination support for custom archives (types and taxonomies). It’s actually a fairly time consuming tweak so I can’t just zip over the files right now. But hopefully within the next few updates it will be ready.

    Right now my main focus for the upcoming update is adding a bunch of new card styles and new section templates and want to get it out hopefully by Wednesday/Thursday so not looking to add on any other updates for 5.2.1 at this point.

    Now, you can of course just use a template for the taxonomies: https://wpexplorer-themes.com/total/docs/category-taxonomy-template/ – this way you can use the load more functionality from element you choose to display the posts (Post Cards / Post Types Grid).

    If all you are doing is using a template to override the default loop it should be very quick to setup and in terms of speed/bloat it’s not a concern.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Control custom title & “main page” for taxonomy’ is closed to new replies.