How to customize 2 different blog pages of the same website

Support Forums for LiveMesh Themes & Plugins Forums Fusion Theme Support How to customize 2 different blog pages of the same website

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #22885
    Menusifu_mkt
    Member

    Hi LiveMesh,

    We are recently developing the company website with 2 languages. We plan to have 2 blog pages with different articles. Is it possible that we categorize posts with different tags and show them exclusively in 2 blog pages we have?

    Thank you so much!

    Best,
    Mengxi

    #22902
    Veena
    Moderator

    You need to provide a category query in template-blog.php at line number 23 for categorizing posts.
    You can find the details here –
    https://codex.wordpress.org/Class_Reference/WP_Query#Category_Parameters
    https://codex.wordpress.org/Class_Reference/WP_Query#Tag_Parameters

    example:

    $query = array('posts_per_page' => intval(get_option('posts_per_page')), 'ignore_sticky_posts' => 0, 'paged' => $paged, 'category_name' => 'inspiration');
    
    #22908
    Raghavendra
    Moderator

    Basically you create two different page templates like template-blog-en.php and template-blog-es.php which are similar to template-blog.php and provide category/tag filters in the two page templates. You can then use them for your blog posts.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Fusion Theme Support’ is closed to new topics and replies.