Home Forums Designexo Pro Show/filter specific categories in blog template page

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #39523
    Ilias Kapetanakis
    Participant

    Hi,

    I have a page using the Blog Full Width template (i have the same question for all blog templates).
    Is there a way of filtering specific post categories in this page?
    In a different blog page i want to present a different category and so on.

    Thank you,
    Ilias

    #39524
    themearile
    Keymaster

    Hi Ilias

    Thanks for contacting us.

    Please follow the help article https://www.wpbeginner.com/beginners-guide/how-to-add-topics-in-wordpress-navigation-menus/ to create a blog category page.

    I hope it helps.

    Thanks

    #39527
    Ilias Kapetanakis
    Participant

    Thank you for the response.

    It helps a lot as i can create blog pages based on the category (although i cannot choose diff blog template). My only issue now, is the category word in the title. Can i remove it somehow and leave only the name of the category as title?

    Thank you,
    Ilias

    #39539
    Ilias Kapetanakis
    Participant

    Hi,

    Do you have any proposal for the issue i mentioned in my previous post?

    How can i remove the “Category” word from the archive blog posts page header/title? Can you please help in which php file is the relevant code? I tried adding in the functions.php the following code with no succees:
    function remove_category_word( $title ) {
    if ( is_category() ) {
    $title = single_cat_title( ”, false );
    }
    return $title;
    }
    add_filter( ‘get_the_archive_title’, ‘remove_category_word’ );

    I am guessing the theme is not using the get_the_archive_title’ filter.

    Thank you,
    Ilias

    #39542
    themearile
    Keymaster

    Hi Ilias

    Ok Go to designexo-pro >> inc and please open the template-functions.php file and replace the below link code in this file.

    https://pastebin.com/p11ghz0p

    Let us know if it works.

    Thanks

    #39543
    Ilias Kapetanakis
    Participant

    Thank you very much for the support!

    This was exactly what I was looking for.

    #39767
    themearile
    Keymaster

    Resolved

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.