Access the same page from multiple urls (wildcard)

You can use template_include, but before you hook to this filter you must do the following steps: Create page template. e.g: page-target.php <?php /** * Template Name: Page Target */ … Manually query the contents of target-page on page-target.php template, because the global $post will be referencing to your some-prefix-* page. (Optional): Edit and apply … Read more

How to change the category url jusy show /category/%category_id% in wordpress?

I find my answer on the internet. function numeric_category_rewrite_rules( $rules ) { $custom_rules = array(); foreach ( $rules as $regex => $rewrite ) { $regex = str_replace( ‘/(.+?)/’, ‘/([0-9]{1,})/’, $regex ); $rewrite = str_replace( ‘?category_name=”, “?cat=”, $rewrite ); $custom_rules[ $regex ] = $rewrite; } return $custom_rules; } add_filter( “category_rewrite_rules’, ‘numeric_category_rewrite_rules’ ); function numeric_category_link( $category_link, $term_id … Read more

Site url is not showing the home page

Finally, i solved by installing a free plugin called “Simple Website Redirect”. It did not seem to work in the beginning, but after few hours the effects took place. This plugin redirects internal url to whatever destination y choose. It takes few hours for the changes to take place.