Is the SEO plugin necessary?

The main purpose of SEO plugin is to give you more control over SEO-related factors (titles, excerpts, meta tags and so on). It doesn’t do anything magical, just an editor to let you fine-tune beyond native WP capabilities. So necessity equals if and how much of those aspects you are willing to spend time on. … Read more

How to modify URL structures in custom post types and taxonomies or terms

I’m not sure it’s possible, or perhaps it just may not be the best approach. Here is my reasoning: domain.com/post-type-name/taxonomy-name/term-name/post-title/ Posts can be attached to multiple terms, so in essence there could be multiple links to the same post: domain.com/post-type-name/taxonomy-name/term-name/post-title/ domain.com/post-type-name/taxonomy-name/term2-name/post-title/ domain.com/post-type-name/taxonomy2-name/term3-name/post-title/ domain.com/post-type-name/post-title/ Depending on how you got there. You will definitely be able to … Read more

Pretty URL with add_query_var

add_rewrite_endpoint( ‘changelog’, EP_ROOT ); Will add the endpoint, changelog, which you can then check on template_redirect hook. On match the query variables ( $wp_query->query ) array should contain key changelog containing whatever comes after the / in value. So for URL example.com/product1/changelog/5 you would have a query variable named changelog with the value 5. If … Read more

How to stop wordpress to make the default query?

Stop WordPress to run main query is hard: you have to dig inside the deep heart of WordPress. WordPress frontend workflow: wp-blog-header.php call the function wp() wp() function creates an instance of wp class, and call main() method on it main() method code: public function main($query_args=””) { $this->init(); $this->parse_request($query_args); // build query vars starting from … Read more