Mobile Theme : latest articles categorie

Posted in: Newspaper
Post count: 8

Hi there,

i know that many guys have alreadys ask about how to show on Mobile Theme only latest articles.
But nothing happen till now, so kindly let me know is there a way to add a function to the mobile theme that let us show there only 1 or more categories.

It will be cool if anyone can help out with that or have already add this function to the mobile theme function.php
This is real missing on the theme, we not want show all categories on mobile pages, hope you understand.

Thanks for help.

Post count: 8

Hi there i have some functions code but it not real works any idea of that:

/**
* Hide categories under “Latest Articles” in Newspaper Mobile Theme.
*/
function hide_newspaper_mobile_cats( $query_args ) {
if ( td_is_mobile() && is_home() ) {
$excluded_categories = array( 5, 6 );
$query_args[‘category__not_in’] = $excluded_categories;
}
return $query_args;
}
add_filter( ‘pre_get_posts’, ‘hide_newspaper_mobile_cats’ );

Post count: 21065

Hello!

In the theme panel settings, there is only a filter for the front page grid. Unfortunately, there are no settings to exclude a category on the mobile theme layout.
For customization and other services, contact our custom work team here: https://tagdiv.com/premium-customization-services/.

I appreciate your understanding!

Post count: 8

yes i know this, its also already discussed in some forum treads here, but i hope some one can take a view on this issue and give many people here a solution for this problem.

Post count: 8

ok find the solution in other tread

https://forum.tagdiv.com/topic/mobile-theme-categories-are-the-same/

Thanks anyway this works for me

Viewing 5 posts - 1 through 5 (of 5 total)
The forum ‘Newspaper’ is closed to new topics and replies.