Pretty urls for custom pagination

You can handle this with WordPress’s internal rewrites system by adding a rewrite endpoint: function wpd_cpage_endpoint() { add_rewrite_endpoint( ‘cpage’, EP_PERMALINK ); } add_action( ‘init’, ‘wpd_cpage_endpoint’ ); This will add extra rewrite rules enabling /cpage/n/ on the end of permalinks. You can then fetch the value on those requests with get_query_var( ‘cpage’ ). EDIT- This is … Read more

Loop Split two Columns

How can one split a loop via WP_Query into two columns without having to work with two loops These would be possible with if conditional. and it is possible that for example in the left side those posts of category “A and B” and in the right side those posts of category “C and D … Read more

How to have this permalink structure: post_type/postname/custom_inner_page

Register your taxonomy first and set the argument slug and rewrite rules to your slug which is city Register your post type with slug of your taxonomy city prefixed and make sure you set the has_archive argument to taxonomy. Now add a filter to post_type_link to make the stores show the individual permalink. register_post_type( ‘city’, … Read more

Two loops on archive page

From your question it is not clear which posts you want to select precisely. In any case, you clearly want to display different posts than are normally presented on the archive page. This means you will need to make a different selection in your template, using wp_query. The trick is to select the right arguments. … Read more