Need to create a separate blog on my site

Dear support,
I need to create a separate blog on my site from my current blog.

At the moment, I have site.com/blog and all my blog posts appear there.

I need to create a new page that has a different feed of posts with url: site.com/research

Posts that are published under /research should not appear with the general /blog posts
and vice versa.

Is there any way to do this please? What is the ideal way?

Thanks in advance.

Nicolaos

Hi There,

You can try with this shortcode: http://demo.theme.co/integrity-1/shortcodes/recent-posts/.

It could be done by the custom code, you have to install and activate the child theme first: https://theme.co/apex/forum/t/setup-how-to-setup-child-themes/57.

After that adding this custom code under functions.php file locates in your child theme:

function x_exclude_cat_from_home($query) {
	if ($query->is_home() && $query->is_main_query()) {
		$query->set('cat', '-123');
	}
}
add_action('pre_get_posts', 'x_exclude_cat_from_home');

The 123 number is the research category ID.

Hope it helps :slight_smile:

Thanks a lot @thai
I’ll try that :slight_smile:

Let us know how this works!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.