Forum Replies Created
-
AuthorPosts
-
robindean
MemberI've since abandoned my original goal and have gone with another solution. Thank you for the assistance and info.
Shabadoo!
robindean
MemberI tried this and for some reason it broke the primary navigation menu.
I also attempted to run the same function using an is_search based GET parameter which DID show the primary nav but only returned 7 of the 10 post IDs in the array.
Bizarre.
At this point, it's a fun "puzzle" but I'm prepared to resort to a simple page which lists out the links.
Shabadoo!
robindean
MemberHow do I pass the array into post__in using your suggested method above?
Shabadoo!
robindean
MemberIn doing this, how exactly am I passing the array?
I tried a couple of methods via the WP documentation here: https://codex.wordpress.org/Class_Reference/WP_Query
... but threw an error when using => in the post__in adaption.
Shabadoo!
December 26, 2017 at 10:34 am in reply to: Genesis (Streamline Pro) Post__In Blogroll Issues #214812robindean
Member... aaaaannnd support sent me back here.
Seems I've mistakenly forgotten to use the term "loop" which I'll explore but my issue still remains that I'd like to display a list of very specific post ids in blogroll fashion.
I'm going to try using the is_search page instead. Meanwhile, I'm open to suggestions.
Shabadoo!
robindean
MemberAlright, well ... onto StudioPress support it is.
Shabadoo!
robindean
MemberThat fixed everything! Thank you and regards 😎
Shabadoo!
robindean
MemberMy own site is on the Genesis framework. Is yours, Nandita? Maybe that's why it doesn't work.
Shabadoo!
robindean
MemberI'd be willing to bet that the reason they all refer back to the home page is that they're setup for canonical use. That basically tells Google that they shouldn't be linked to but that they should redirect to the first in the series ... which DOESN'T solve the problem of them appearing in the search engines. Studiopress, give us the option!
My solution works for my own theme and I hope it will for everyone else.
Best.
Shabadoo!
robindean
MemberAfter a bit of Googling, I found a solution.
For my theme and it's customizations in particular, I ended up simply adding this to my functions.php file:
function noindex_pagination() {
echo '<meta name="robots" content="noindex,follow,noarchive,noodp,noydir"/>';
}
if (substr($_SERVER['REQUEST_URI'], 0, 6) == '/page/') {
remove_action('genesis_meta','genesis_robots_meta');
add_action('genesis_meta','noindex_pagination');
}
Shabadoo!
robindean
MemberYes, I'm going to reopen this thread.
I'm having the same problem on streamline-pro. Basically, I want to "noindex, follow" ALL PAGINATION.
How do I do this?
Shabadoo!
robindean
MemberProblem solved!
It was me. I removed the <span> in functions.php just after the home icon. Whoops.
My mistake.
Shabadoo!
-
AuthorPosts