Posts in front page

luis.g.monge
5 Posts
luis.g.monge posted this 12 November 2014

i would like to only display post from a specific category in the front page for wordpress template. How can I do this?

i would like to only display post from a specific category in the front page for wordpress template. How can I do this?

Last edited 12 November 2014 by luis.g.monge

Vote to pay developers attention to this features or issue.
17 Comments
Order By: Standard | Newest
Support Team
Support Team posted this 12 November 2014

Hello,

Please note that Themler is using the real content from your CMS but cannot influence such content. So in this case the default functionality of Wordpress matters. As there is no special option for this purpose in Wordpress , you may wish trying to create a page and use a plugin on it for this purpose.

Sincerely,
BillionDigital Team

Hello, Please note that Themler is using the real content from your CMS but cannot influence such content. So in this case the default functionality of Wordpress matters. As there is no special option for this purpose in Wordpress , you may wish trying to create a page and use a plugin on it for this purpose. Sincerely, BillionDigital Team
graal4
1 Posts
graal4 posted this 13 November 2014

Hello, Luis,

I use the plugin List Category Posts (https://wordpress.org/plugins/list-category-posts/). It does exactly what you want, amigo.

Regards,

Hello, Luis, I use the plugin *List Category Posts* (https://wordpress.org/plugins/list-category-posts/). It does exactly what you want, amigo. Regards,
bsjelin
45 Posts
bsjelin posted this 21 May 2015

I want to do this same thing but I cant seem to come up with a solution. I've found several widgets that will allow me to do something similar but this REALLY should come from the template somehow... None of the widgets include the same amount of customization and features and Themler does and its unfortunate we cant add this functionality into it somewhere.

I want to do this same thing but I cant seem to come up with a solution. I've found several widgets that will allow me to do something similar but this REALLY should come from the template somehow... None of the widgets include the same amount of customization and features and Themler does and its unfortunate we cant add this functionality into it somewhere.
shaulhadar
455 Posts
shaulhadar posted this 23 May 2015

I agree, i also need a latest posts widget inside themler. ofcourse i can work with the wordpress plugins, but actually themler already has the posts grid, so if we could just put the grid as a control inside the homepage it would be great..... than we can style it through themler...

this can be a great addition in my opinion...

I agree, i also need a latest posts widget inside themler. ofcourse i can work with the wordpress plugins, but actually themler already has the posts grid, so if we could just put the grid as a control inside the homepage it would be great..... than we can style it through themler... this can be a great addition in my opinion...
Stagger Lee
1841 Posts
Stagger Lee posted this 23 May 2015

I explained here how I did it:

https://answers.themler.com/questions/10934/one-feature-that-would-make-themler-killer

Now is more easier with CMS Code control.
But for that you ask Themler would need to give you option to change loop. CMS Code control cannot do this:

// WP_Query arguments
$args = array (
    'post_type'              => 'test',
    'post_status'            => 'published',
    'category_name'          => 'test-taxonomy',
    'pagination'             => true,
    'posts_per_page'         => '5',
    'order'                  => 'DESC',
    'orderby'                => 'date',
);


// The Query
$query = new WP_Query( $args );


// The Loop
if ( $query->have_posts() ) {
    while ( $query->have_posts() ) {
        $query->the_post();
        // do something
    }
} else {
    // no posts found
}


// Restore original Post Data
wp_reset_postdata();

And of course for those mini loops you need to delete all from head, footer and body line, or you end with multiple footers, heads, etc.

I explained here how I did it: [https://answers.themler.com/questions/10934/one-feature-that-would-make-themler-killer][1] [1]: https://answers.themler.com/questions/10934/one-feature-that-would-make-themler-killer Now is more easier with CMS Code control. But for that you ask Themler would need to give you option to change loop. CMS Code control cannot do this: // WP_Query arguments $args = array ( 'post_type' => 'test', 'post_status' => 'published', 'category_name' => 'test-taxonomy', 'pagination' => true, 'posts_per_page' => '5', 'order' => 'DESC', 'orderby' => 'date', ); // The Query $query = new WP_Query( $args ); // The Loop if ( $query->have_posts() ) { while ( $query->have_posts() ) { $query->the_post(); // do something } } else { // no posts found } // Restore original Post Data wp_reset_postdata(); And of course for those mini loops you need to delete all from head, footer and body line, or you end with multiple footers, heads, etc.
Stagger Lee
1841 Posts
Stagger Lee posted this 23 May 2015

You ask for a bit different thnigs. Author of the topic can search on google snippet for limiting from what categories are posts displayed on the frontend. And piut this snippet in Settings tab. Differences will be visible directly in Themler.

wordpress frontend limit categories

You ask for a bit different thnigs. Author of the topic can search on google snippet for limiting from what categories are posts displayed on the frontend. And piut this snippet in Settings tab. Differences will be visible directly in Themler. wordpress frontend limit categories

Last edited 23 May 2015 by Stagger Lee

Stagger Lee
1841 Posts
Stagger Lee posted this 23 May 2015

// Exclude category from homepage
add_filter( 'pre_get_posts', 'my_exclude_category' );
function my_exclude_category( $query ) {


  if ( $query->is_home ) {
        $query->set( 'cat', '-4,-1,-5,-6,-22,-44' );
    }


    return $query;


}

// Exclude category from homepage add_filter( 'pre_get_posts', 'my_exclude_category' ); function my_exclude_category( $query ) { if ( $query->is_home ) { $query->set( 'cat', '-4,-1,-5,-6,-22,-44' ); } return $query; }
shaulhadar
455 Posts
shaulhadar posted this 23 May 2015

Thanks Stagger, I will check it out, I appreciate your help man:)

Thanks Stagger, I will check it out, I appreciate your help man:)
Support Team
Support Team posted this 25 May 2015

Hi,

We've assigned a task to our developers to search for possible solutions which can be used in Themler.
We'll let you know when we receive any news from them.

Thank you,
Olivia

Hi, We've assigned a task to our developers to search for possible solutions which can be used in Themler. We'll let you know when we receive any news from them. Thank you, Olivia
shaulhadar
455 Posts
shaulhadar posted this 26 May 2015

That's great news Olivia! thanks :)

That's great news Olivia! thanks :)
wuzelina
9 Posts
wuzelina posted this 11 October 2015

Hi There, I have the same need, that I want to add posts from a specific category, but it doesn't work because of the following reasons:
1. In the Backend setttings in Menu the box with "categories" is missing. There's one called "Att. categories" which is empty, although I've articles in different categories.
2. I use the plugin "list-category-posts", but when using that I get only the list of the category names and not the complete posts.

This seems to be a template issue? Can you help? thank you in advance.

Hi There, I have the same need, that I want to add posts from a specific category, but it doesn't work because of the following reasons: 1. In the Backend setttings in Menu the box with "categories" is missing. There's one called "Att. categories" which is empty, although I've articles in different categories. 2. I use the plugin "list-category-posts", but when using that I get only the list of the category names and not the complete posts. This seems to be a template issue? Can you help? thank you in advance.
Support Team
Support Team posted this 20 October 2015

Hi,

Please try the instruction provided in this article in our Documentation:
http://answers.themler.com/articles/40262/wordpress-how-to-show-posts-from-specific-category-on-the-front-page

Thank you,
Olivia

Hi, Please try the instruction provided in this article in our Documentation: http://answers.themler.com/articles/40262/wordpress-how-to-show-posts-from-specific-category-on-the-front-page Thank you, Olivia
webmaster@exnet.gr
111 Posts
webmaster@exnet.gr posted this 04 December 2015

Hello, i would like to do the same but for joomla. Can you provide some documentation for Joomla?

Thank you in advance
Waiting for your answer

Hello, i would like to do the same but for joomla. Can you provide some documentation for Joomla? Thank you in advance Waiting for your answer
Support Team
Support Team posted this 07 December 2015

Hi,

if you need to show articles from a specific category on the front page simply choose Category Blog Layout for the home menu item and select desired category. Joomla itself supports this functionality. There is no need to create Themler specific solutions.

Thank you,
Olivia

Hi, if you need to show articles from a specific category on the front page simply choose Category Blog Layout for the home menu item and select desired category. Joomla itself supports this functionality. There is no need to create Themler specific solutions. Thank you, Olivia
editorweb1
13 Posts
editorweb1 posted this 18 March 2016

The issue is to add blocks on the first page with categories defined in the blocks
as a block of news other varieties other sport ... already should have this function in themler for terms that use a plugin ... not cool. It has a competitor who does it see: Profit Builder and really works well it myself from this function but have the je Themler and think it's cool to add this function.

The issue is to add blocks on the first page with categories defined in the blocks as a block of news other varieties other sport ... already should have this function in themler for terms that use a plugin ... not cool. It has a competitor who does it see: Profit Builder and really works well it myself from this function but have the je Themler and think it's cool to add this function.
shaulhadar
455 Posts
shaulhadar posted this 22 April 2016

I am also waiting for news from themler team about the future posts wiget control., I mean this is a CMS software, I think it would be logical ifvtou could add a posts control.....if I know how to I would help you, but I am not skilled in those areas....I think only stagger can do this currently.

I am also waiting for news from themler team about the future posts wiget control., I mean this is a CMS software, I think it would be logical ifvtou could add a posts control.....if I know how to I would help you, but I am not skilled in those areas....I think only stagger can do this currently.
Support Team
Support Team posted this 26 April 2016

Hi,

Sorry, what widget you are talking about? The initial request of this ticket already has a solution:
http://answers.themler.com/articles/40262/wordpress-how-to-show-posts-from-specific-category-on-the-front-page

Sincerely,
Hella

Hi, Sorry, what widget you are talking about? The initial request of this ticket already has a solution: http://answers.themler.com/articles/40262/wordpress-how-to-show-posts-from-specific-category-on-the-front-page Sincerely, Hella
You must log in or register to leave comments