Forum Replies Created
-
AuthorPosts
-
robindeanMember
I've since abandoned my original goal and have gone with another solution. Thank you for the assistance and info.
Shabadoo!
robindeanMemberI 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!
robindeanMemberHow do I pass the array into post__in using your suggested method above?
Shabadoo!
robindeanMemberIn 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 #214812robindeanMember... 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!
robindeanMemberAlright, well ... onto StudioPress support it is.
Shabadoo!
robindeanMemberThat fixed everything! Thank you and regards 😎
Shabadoo!
robindeanMemberMy own site is on the Genesis framework. Is yours, Nandita? Maybe that's why it doesn't work.
Shabadoo!
robindeanMemberI'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!
robindeanMemberAfter 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!
robindeanMemberYes, 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!
robindeanMemberProblem solved!
It was me. I removed the <span> in functions.php just after the home icon. Whoops.
My mistake.
Shabadoo!
-
AuthorPosts