Custom rewrite rules not working with WPML
Custom rewrite rules not working with WPML
Custom rewrite rules not working with WPML
How can achieve this permalink perfectly? domain.com/%category%/%post-name%
I want to add a new tag to WordPress URL permastruct
You won’t be able to use regular Categories in WordPress because Categories must all have unique slugs. However, you can still achieve this URL structure. You would need to create at least one custom post type. I would suggest keeping “News” category as regular Core Posts, and creating a Custom Post Type called “Gossip.” You … Read more
Add prefix to page URL based on the page template
Right url for custom post type
Rewrite Question Mark in Post Template to Make it Pretty URL
I don’t know why my question was not well formatted and can not modify it. Here’s the more readable one: I’m using WP Admin DIVI builder to create a page (named get-region-page), in which Pod shortcut is used to retrieve the url param. For example: [pods name=”region” slug=”{@get.regionparam}” field=”region_name”] which gives apparently the same result … Read more
Custom rewrite url category
Found the solution: functions.php: add_action(‘init’, ‘wp_university_full_rewrite’); function wp_university_full_rewrite() { add_rewrite_rule( ‘university/([^/]*)/?$’, ‘index.php?pagename=university&uni_name=$matches[1]’, ‘top’); } add_filter(‘query_vars’, ‘wp_university_full_query_vars’); function wp_university_full_query_vars( $query_vars ) { $query_vars[] = ‘uni_name’; return $query_vars ; } function get_data_with_query( $name_query ) { $data = []; global $wpdb; $data = $wpdb->get_row(“SELECT * FROM table WHERE name=””.$name_query.”””, ARRAY_A ); return $data; } custom_template.php: <?php $name_pull = … Read more