Meduncho
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Link to category archiveA small issue came up, when I go to the archive page and hit to go next page (second page of posts) it keeps repeating the posts on the second page endlessly, the entire loop is repeated one after another.
What could be causing it, the link is https://localhost/?cat=35&template=archive&paged=2Loop code: `
[Code moderated as per the Forum Rules. Please use the pastebin]Forum: Fixing WordPress
In reply to: How to add posts pagination to custom category template ?Can I remove the limit of 10 posts and just show all without pagination ?
Forum: Fixing WordPress
In reply to: Link to category archiveThanks a lot, that did the trick
Forum: Fixing WordPress
In reply to: Link to category archiveOk, but how can I link it in the menu? It will be the same category so the link would be like – https://localhost/?cat=86 for example, I’ll have the category “Anouncements” and I need a link named “Archive” that leads to the same category but loads the second template so the expired posts are shown ?
When will the pro version be released and what would be the price ?
Forum: Fixing WordPress
In reply to: Hide "No category" from subcategoriesOk, figured it out
added this code
function bm_dont_display_it($content) { if (!empty($content)) { $content = str_ireplace('<li>' .__( "No categories" ). '</li>', "", $content); } return $content; } add_filter('wp_list_categories','bm_dont_display_it');
to functions.php of my theme.
Now the only issue I am having is the empty<li>
generated
<li class="categories"></li>
Anyone has a clue how to remove it ?
Thank you both for the help provided,
alchymyth’s code worked flawlessly, cheers