nanonanouk
Forum Replies Created
-
Forum: Plugins
In reply to: [Yoast SEO] wpseo_prev_rel_link and wpseo_next_rel_link missing?That’s working great now ?? Thankyou so much for your time. Have a loverly Xmas!
Forum: Plugins
In reply to: [Yoast SEO] wpseo_prev_rel_link and wpseo_next_rel_link missing?Hi @sa?a
Thanks for your reply and linking to the code, explains why my grep didn’t find it!
My site is served as both http and https, it’s optional, I let the user decide but wanted to make sure I’m not getting duplication in google so was going to use the filters to set the rel canonical, next and prev to always be the http version which is the one I want google to index. Sitemap is okay as that is always has http links for both.
This is my code, any ideas why it wouldn’t work for next/prev? canonical converts to http fine.
function set_link_non_ssl($url) { $url = preg_replace("/^https:/i", "http:", $url); return $url; } add_filter( 'wpseo_canonical', 'set_link_non_ssl' ); add_filter( 'wpseo_prev_rel_link', 'set_link_non_ssl' ); add_filter( 'wpseo_next_rel_link', 'set_link_non_ssl' );
Kind regards
Scott- This reply was modified 8 years, 2 months ago by nanonanouk.
Thanks for the quick reply!
Shame it’s not possible ?? I suppose matching the filename to the table name is not reliable enough as the table name could have changed.
If you ever think of a way to do it I think it would be a great addition to your excellent plugin!
Forum: Plugins
In reply to: [WP Responsive FAQ] Sorting FAQ sequenceI was getting the same problem “Warning: require(/partials/_form_elements.php):…” in version 1.3.
Changing line 29 in wp-responsive-faqs/src/admin_menu.php as below fixes the issue.
<?php require(dirname(__FILE__) . ‘/partials/_form_elements.php’ ) ?>