I’m currently trying to setup two news pages, one public page, one private (internal) page:
– On the public page, posts from all categories but the internal one should be displayed. I did hide the internal category from the catergoryfilter with css alreay.
– The internal news page will be the catergory page of that category. Here I can hide the entire filter-bar.
The issue that occurs now is that whenever I click on a post and navigate through the prev. and next posts, also posts from the other categories are shown (on the internal page the public ones, and more importantly, the internal news on the public news page.
I found that I can navigate through the same category only, but that#s not desired for the public news page where only the internal news should be skipped.
Is this plan possible to realize (at all)?
If so, I’d very much appreciate some help as I’m not that much into PHP and WP
Thanks!
]]>I got more than 100 posts in my site and I’m looking for a solution for my visitors for easly navigation between posts using their categories.
I think to build a table of all posts categories and by click on a category it wil go to all sub-category and by click on the sub category all posts that connect to this sub category will present to the visitor.
Please your advice for a solution to my require.
Thank you in advance
Moshe
WordPress reads that for example News has 23 pages but yet only loads around 18 pages, Albums has 143 pages but stops working at page 85+
Was wondering what Is going on??
Any help would be appreciated.
my website address is
urbanmusichq.se
I used this in functions to create the function
function wp_pagenavi( $p = 6 ) { // pages will be show before and after current page
if ( is_singular() ) return; // don't show in single page
global $wp_query, $paged;
$max_page = $wp_query->max_num_pages;
if ( $max_page == 1 ) return; // don't show when only one page
if ( empty( $paged ) ) $paged = 1;
echo '<span class="pages">Page: ' . $paged . ' of ' . $max_page . ' </span> '; // pages
if ( $paged > $p + 1 ) p_link( 1, 'First' );
if ( $paged > $p + 2 ) echo '... ';
for( $i = $paged - $p; $i <= $paged + $p; $i++ ) { // Middle pages
if ( $i > 0 && $i <= $max_page ) $i == $paged ? print "<span class='page-numbers current'>{$i}</span> " : p_link( $i );
}
if ( $paged < $max_page - $p - 1 ) echo '... ';
if ( $paged < $max_page - $p ) p_link( $max_page, 'Last' );
}
function p_link( $i, $title = '' ) {
if ( $title == '' ) $title = "Page {$i}";
echo "<a class='page-numbers' href='", esc_html( get_pagenum_link( $i ) ), "' title='{$title}'>{$i}</a> ";
}
function custom_excerpt_length( $length ) {
return 20;
}
add_filter( 'excerpt_length', 'custom_excerpt_length', 999 );
and called it using this
<nav class="pagenavi"><?php wp_pagenavi();?></nav>
I then tried a plugin called WP-PageNavi and that did the exact same error.
What could it be?
[ No bumping please. ]
]]>I have category pages and child categories in some of them. I want to display in the category page, links to the current parents and child categories, so the user can filter the posts.
Imagine we are broswing Category 1, with has 2 child categories. All I want is to display:
Category Title
[All] – [Child 1] – [Child 2]
[the loop]
Only the content and category title would be displayed if there are no child categories.
I’m aware I could do this by making specific page templates, but I want to keep everything lean and dynamic, so my client can change the categories as he pleases.
Thank you guys in advance!
]]>I would like to have posts navigation. For example, let’s say that I had 10 posts about mobile phones, 5 posts about books and 15 posts about food. I would like to have a navigation for each of these categories.
So if I was reading a post in mobile phones, let’s say post #3, I would like to be able to go back to post #2 or post #4 (mobile phones category). Then if I chose to go to post #4, I would like to go back to either post #3 or go to post #5 (mobile phones category).
Hopefully that makes sense, if it doesn’t – please tell me!
]]>For example:
https://chrisdrury.evodev.net/category/mapping/mushrooms/
This is page for posts in the category ‘mushrooms’ Click a thumbnail and then use the left and right more links at the bottom. You don’t get more items in the ‘mushroom’ category, instead you get the next post that was entered, which might be any category.
]]>I’d like to attach a screenshot to show exactly what I’m referring to, but I don’t see a way to do that. So, I’ve created a page within my blog that shows a jpeg with the navigation bar I’m referring to circled in red.
If you go to this page, you’ll see the exact page I used for the screenshot, and be able to use the navigation bar.
Of the items showing in the navigation bar, the one on the right is the same category as the post, but the one on the left takes you to a post that is in another category.
I know there’s got to be a simple solution for this. Unfortunately, the theme I’m using (Suffusion) doesn’t seem to have a setting for this. I’m pretty new to php coding, but I’ve gotten pretty good at using Firebug to figure out solutions, but not in this case.
Thanks for your help!
]]>