Home › Forums › Viral › Link post Category title with there main category on home page of that website.
- This topic has 1 reply, 1 voice, and was last updated 6 years, 4 months ago by zotariq.
- AuthorPosts
- February 16, 2018 at 7:58 pm #4710zotariqParticipant
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);
}
}
}
ThanksFebruary 16, 2018 at 8:12 pm #4711zotariqParticipanthere is the website link .
http://www.actualitati-arad.roAnd here is image Link which clearly describe what i want.
http://www.actualitati-arad.ro/wp-content/uploads/2018/02/attachment_5abfa30b1eea3623a6e80543129f80a5.jpg - AuthorPosts
- You must be logged in to reply to this topic.