Jonathon Harris
Forum Replies Created
-
Thanks for this – contacted Hostgator and whitelisting mod_security rule 340162 worked like a charm.
Forum: Fixing WordPress
In reply to: Next & Previous links for single taxonomy term?Using Next/Previous Post Link Plus for WordPress:
https://www.ambrosite.com/plugins/next-previous-post-link-plus-for-wordpressI ended up including the prev/next as an external file in my single-portfolio.php file
<?php include (TEMPLATEPATH . '/inc/portfolio-prev-next.php' ); ?>
And in the portfolio-prev-next.php file:
<div class="leftarrow"><?php previous_post_link_plus( array( 'order_by' => 'post_name', 'order_2nd' => 'post_date', 'meta_key' => '', 'post_type' => '', 'loop' => true, 'end_post' => false, 'thumb' => false, 'max_length' => 0, 'format' => '%link', 'link' => '<img src="images/leftarrow.png" alt="Next" />', 'date_format' => '', 'tooltip' => '%title', 'in_same_cat' => true, 'in_same_tax' => true, 'in_same_format' => false, 'in_same_author' => false, 'in_same_meta' => false, 'ex_cats' => '', 'ex_cats_method' => 'weak', 'in_cats' => '', 'ex_posts' => '', 'in_posts' => '', 'before' => '', 'after' => '', 'num_results' => 1, 'return' => '' ) ); ?> </div> <div class="rightarrow"><?php next_post_link_plus( array( 'order_by' => 'post_name', 'order_2nd' => 'post_date', 'meta_key' => '', 'post_type' => '', 'loop' => true, 'end_post' => false, 'thumb' => false, 'max_length' => 0, 'format' => '%link', 'link' => '<img src="images/rightarrow.png" alt="Next" />', 'date_format' => '', 'tooltip' => '%title', 'in_same_cat' => true, 'in_same_tax' => true, 'in_same_format' => false, 'in_same_author' => false, 'in_same_meta' => false, 'ex_cats' => '', 'ex_cats_method' => 'weak', 'in_cats' => '', 'ex_posts' => '', 'in_posts' => '', 'before' => '', 'after' => '', 'num_results' => 1, 'return' => '' ) ); ?> </div>
The settings for in_same_cat and in_same_tax did the trick. Hope this helps.
Hi Marcus,
Thanks for that. I set to No Events (didn’t save), and when I do, I see the archive option you mention, but it’s already set to Yes. So, I then reselected my events page and saved. Don’t see any differences on the front end though?Hi Marcus,
Thank you for the update and for checking that out, I know it would have taken time to track down.I’m not sure I follow the steps you mentioned to stop the links from being dropped? Would you mind explaining the steps a bit? Otherwise, it sounds like the next release might take care of it?
Thanks again for your time,
Jonathon@kdt92 – Thanks for the info.
@marcus – Gave it a try switching away from the basic Yaost Breadcrumbs to using the built in with Yoast SEO. It’s partially working now. My base events page is set to Upcoming Shows, which displays in the breadcrumbs correctly as Welcome / Contact Us / Upcoming Shows, but then when selecting an event, Contact Us / Upcoming Shows drops from the breadcrumbs and becomes Welcome / Event Name. Can’t find a setting that would control that. Any thoughts?
Even the Yoast plugin was working as it should until the last Events update.
Yes, thank you, if you don’t mind. I’m using Yoast Breadcrumbs. It’s working for other custom post types, just not Events for some reason.
No, still have not.
Hi Elliot,
I just tried the new update you rolled out, and it works like a charm ??Thanks for all your great work.
Best,
JonathonHi Elliot,
I think I found the extension that might have caused ACF to disappear from the Admin sidebar. I was just installing SEO Ultimate for a client (different site), and ACF went missing. I changed to 181 (just my random pick again), and that brought it right back.I hope that helps,
Best regards,
JonathonI ended up going with 181 just as a random test and it worked fine.
The plugin I installed most recently was Subscribe to Comments Reloaded, but honestly, I’m not sure that would be it since it doesn’t list itself in the WP admin main sidebar.
The plugin before that was BBPress, which does have items in the Admin sidebar. So, that might be the suspect item. That would have been around when I noticed that ACF was missing, because I had updated a couple plugins (Advanced Custom Fields too) about that time.
Thanks again for your help, ACF is a fantastic extension. If there is anything I could test, please let me know.
Hi elliotcondon,
Thank you for your help, that was exactly the issue!Much appreciated, and voting now ??
No, I tried resaving the permalinks in the WP admin, and checking the available options in Yoast’s plugin.
I hear what you’re saying, but every other page on the site is still correct, except for the EM pages. You can see for yourself at the link in the first post. It doesn’t make sense.
Same goes for links used in the sidebar widgets on any EM pages (which I’ve removed now), since those links were incorrect as well, even though they are correct on all other pages of the site. (The second post above).
There’s got to be something about the way that EM is working that’s causing it.
Hi Marcus,
Thanks for the reply. I believe you that it should work, they were working together correctly on this site too, until after upgrading to EM 5. And, the only pages that are showing the breadcrumbs incorrectly are the EM pages. Any thoughts what settings would be different that would cause this?Permalinks on the site are just postname. Then, using the auto suggested slugs in the EM settings.
It’s actually force inserting those new permalink slugs into links inside widgets that are linking to pages inside the site. Even with full paths used – so, a link that should be going to https://www.belttechnologies.com/design-info/
…is instead now linking to https://www.belttechnologies.com/upcoming-shows/pacific-design-mfg/design-info which, of course, throws a 404 since that page doesn’t exist.
Any way to disable the new permalink slugs entirely? I tried deleting them and leaving them blank, but EM is inserting defaults in their place.
Thanks,
Jonathon