Sort loop with query in the link

You could use rewrite rules but doing it the way you’ve put should be fine. It’s safe so long as you sanitize the query string. Using add_query_arg() you can add a query to the end of your current URL, like this: $link = add_query_arg( ‘orderby’, ‘name’, get_permalink() ); You can then, for example, apply it … Read more

Custom URL scheme – paramters on custom post type

Try rewrite endpoints: function wpse_143634_endpoint() { add_rewrite_endpoint( ‘info’, EP_PERMALINK ); } add_action( ‘init’, ‘wpse_143634_endpoint’ ); Now you’ll find you can visit any post and tack on info/whatever to the URL – WordPress will still load the post, except now you’ll have get_query_var( ‘info’ ) == ‘whatever’. Further reading: https://make.wordpress.org/plugins/2012/06/07/rewrite-endpoints-api/

rewriting for custom taxonomy rewrite

All you need is pass the URL structure in the arguments when registering your custom taxonomy. For example: add_action( ‘init’, ‘register_my_taxonomy’ ); function register_my_taxonomy() { $args = array( //Complete the arguments for your taxonomy // The rewrite argument should looks like this ‘rewrite’ = array( “slug” => “cars/my-tax” ) ); register_taxonomy( ‘my-tax’, ‘my-post-type’, $args ); … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)