2
votes
1answer
55 views

Adding Post Counts to Menu (Nav) Programmatically?

I'm fairly stumped on this. Without getting too query-heavy, I was wondering what path one might take to produce a menu that links to a category of posts, and displays in parenthesis how many new ...
4
votes
1answer
94 views

How make get_next_post() return first post when viewing last one

I need a way to link to the first and the last post (CPT) created. For example, I'm in the last post and if I click in "next" I should go to the first. Now i have this <?php $next_post = ...
0
votes
2answers
122 views

Problem excluding category from get_next_post

I have a custom post type called "exhibitions" that uses the native "category" taxonomy. I have three categories: Current, Past, and Featured. Posts get marked either Current or Past and some are also ...
0
votes
1answer
38 views

Count > 1 Navigation Slider

I have a post type slider, when you have more than one post to display navigation. My code: <?php $count_slider = wp_count_posts('slider'); echo $count_slider->publish; ?> <?php ...
0
votes
0answers
55 views

How do I paginate posts page with $wpdb?

I am using this to get the posts: (...) if ( empty( $categories_defined) ) { $posts = get_posts($args); } else { global $wpdb; $posts = $wpdb->get_results( $wpdb->prepare( "SELECT * ...
0
votes
2answers
43 views

Add Text Domain To Post Navigation

I'm using previous_post_link('%link','Previous Post'); and next_post_link('%link','Next Post'); for post navigation but I want to add text domain to that similar to _e('Next Post' , 'ft'); How ...
1
vote
2answers
186 views

Restrict post navigation to current sub menu

This is what I'm using to output my post navigation: <?php if (is_single() ) { ?> <nav class="post-navigation"> <h1 class="visuallyhidden">Post Navigation</h1> ...
0
votes
1answer
152 views

Navigation link to specific user page

I asked this question and got a great reply - Associate Page with User - so I can now associate a post with a specific user as required. What I want to do is include in the main site navigation a ...
1
vote
2answers
139 views

Is it possible to create a form post wordpress custom navigation link?

I work with a church that has a donate button on their site. The button uses a form post to connect with their simple checkout item and they want a button on the navigation to link to the donation ...
0
votes
1answer
349 views

remove older posts link [closed]

I use these following codes to delete older posts and newer posts links in functions.php but it still shows them. function remove_post_navigation() { remove_action('thematic_navigation_below', ...
1
vote
2answers
211 views

Highlight static blog page link in header

I created a navigation bar like tab system for my header and I can get all but my news button to highlight on that page. The news is a static page for all of my blog/news post. Not sure if it's my ...
0
votes
1answer
600 views

How to show next/prev link, when it's not active?

When on the first page of blog wordpress shows only "older posts" link because there are no newer posts, but i would like to show also the "newer posts" link but style it as inactive. i need to do ...
0
votes
1answer
173 views

Possible?! A contextually titled back link

The dilema: I have a category menu in sidebar.php that highlights the category one is in. I need to keep that highlight ON when one dives into a post of that category. The blogs posts are usually ...
0
votes
1answer
202 views

Post navigation using date

On my site: www.finmand.dk/almastofa/nyheder (a danish site) I have used this code to navigate between the post: <?php foreach(get_the_category() as $category) { $thecat = $category->cat_ID; } ...
1
vote
1answer
110 views

Post Navigation

I have a widget area on my posts category pages and am wondering if there is a way to dynamically add a link to the first post as well as the current post of the category. I think the first post can ...
4
votes
1answer
1k views

Getting the Next and Previous Posts Titles in the Sidebar?

Let's assume that I have the following posts with the following titles: PostA (is assigned to the 'category 1') PostX (category 2) PostB (category 1) PostC (category 1) PostD (category 1) PostY ...