Changing RSS feed URL structure

After some thought – this can be achieved with some creative abuse of existing feeds: easy part – redirect category feeds to page comment feeds hard part – make page comment feeds think they are category feeds Something like this: Category_Feed_At_Page::on_load(); /** * Repurpose page feeds for category of same name feeds. */ class Category_Feed_At_Page … Read more

Adding pretty query parameters

You would need a custom rewrite rule for that: http://codex.wordpress.org/Rewrite_API/add_rewrite_rule I think you might have a hard time though, with it being within an area of the site (single post type) already using a custom rewrite rule!

Query var removed after rewrite

Maybe you are not using the correct hooks nor the correct rewrite rule. You are rewriting to pagename, which is for pages. You should use name to get posts by slug. add_filter(‘query_vars’, ‘cyb_add_query_vars’); function cyb_add_query_vars( $vars) { $vars[] = “item”; return $vars; } add_action(‘init’,’cyb_add_rewrite_rules’); function cyb_add_rewrite_rules() { add_rewrite_rule( ”^shows/([^/]+)/([^/]+)/?$” , ‘index.php?post_type=shows&name=$matches[1]&item=$matches[2]’ , ‘top’ ); } … Read more

MultiSite Move conjures duplicate URL

I would suggest to use Search and Replace utility when you move your WordPress Network. it seamlessly update all the fields of the database from old domain to new domain. After that, you only need to update the domain name in wp-config.php. (Tip: do not include http:// and trailing slash while replacing the domain rather … Read more

Random post category URL

Pro tip – don’t custom query unless you need to (you don’t). And never use the guid field. if ( is_singular() && $cats = get_the_category() ) $cat_id = $cats[0]->term_id; // Category ID for current post elseif ( is_category() ) $cat_id = get_queried_object_id(); // Category ID for current archive else $cat_id = 0; // No cats … Read more

Ninja form Redirect depending on text field content [closed]

I am not sure whether you have hooked this function to appropriate action. Also you have not concatenated the strings properly: Instead of $newdestinationurl = $url/$destinationurlslug ; it should be $newdestinationurl = $url.”https://wordpress.stackexchange.com/”.$destinationurlslug ; Please see below for the complete code: function ninja_forms_handler() { add_action ( ‘ninja_forms_post_process’, ‘change_ninja_forms_landing_page’, 1, 2 ); } add_action(‘init’, ‘ninja_forms_handler’); function … Read more