Home Forums Viral Link post Category title with there main category on home page of that website.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #4710
    zotariq
    Participant

    Hi,I’m using viral wordpress theme. I want to link Post category title with there main post category page . I want when user click on title of post category then it will redirect on category page .

    Here is the website please check on home page Post Category title name “ACTUALITĂȚI” I want when user click on that title it will redirect on these full category page where all post show of that category .

    Here is the middle left Section code of home page .
    <?php
    /**
    * @package Viral
    */

    $viral_frontpage_middle_blocks = get_theme_mod(‘viral_frontpage_middle_blocks’);

    if($viral_frontpage_middle_blocks){
    $viral_frontpage_middle_blocks = json_decode($viral_frontpage_middle_blocks);
    foreach ($viral_frontpage_middle_blocks as $viral_frontpage_middle_block) {
    if($viral_frontpage_middle_block->category && ($viral_frontpage_middle_block->enable == ‘on’ )){
    $viral_layout = $viral_frontpage_middle_block->layout;

    $args = array(
    ‘cat’ => $viral_frontpage_middle_block->category,
    ‘layout’ => $viral_layout,
    ‘title’ => $viral_frontpage_middle_block->title
    );

    do_action(‘viral_middle_section’, $args);

    }
    }
    }
    Thanks

    #4711
    zotariq
    Participant
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Merry Christmas & Happy New Year!!Merry Christmas & Happy New Year!!Merry Christmas & Happy New Year!!Merry Christmas & Happy New Year!!Merry Christmas & Happy New Year!!Merry Christmas & Happy New Year!!Merry Christmas & Happy New Year!!Merry Christmas & Happy New Year!!Merry Christmas & Happy New Year!!Merry Christmas & Happy New Year!!Merry Christmas & Happy New Year!!Merry Christmas & Happy New Year!!Merry Christmas & Happy New Year!!Merry Christmas & Happy New Year!!Merry Christmas & Happy New Year!!Merry Christmas & Happy New Year!!Merry Christmas & Happy New Year!!Merry Christmas & Happy New Year!!Merry Christmas & Happy New Year!!Merry Christmas & Happy New Year!!Merry Christmas & Happy New Year!!Merry Christmas & Happy New Year!!Merry Christmas & Happy New Year!!Merry Christmas & Happy New Year!!
CHRISTMAS SALE ! 🎁🎁 Enjoy 30% OFF 🔖 Use Coupon CodeHOLIDAY at checkout.