Rewrite post type slug only for child theme

Make the slug translatable when you register the custom post type: register_post_type( ‘post_type_name’, array ( ‘rewrite’ => array ( ‘slug’ => _x( ‘post_type_name’, ‘URL slug’, ‘your_text_domain’ ) ) ) ); Then create a small plugin for the site where you want to change the slug: add_filter( ‘gettext_with_context’, ‘change_my_slug’, 10, 4 ); function change_my_slug( $translation, $text, … Read more

how to edit title of bulk posts?

It depends how you produce the titles of the posts but something like: Load the posts into wordpress Update wp_posts using mysql That’s how I do bulk editing and it works very well.

How do I pass a post ID to the page URL?

First of all. The question is a little misleading. What you actually want is “post id(s) for current user”. Here we go: // Global variable for current user ID // More information: http://codex.wordpress.org/Function_Reference/get_currentuserinfo $user_ID; // You need to create a new WP query object // More info: http://codex.wordpress.org/Class_Reference/WP_Query $my_query = new WP_Query( array( ‘post_type’ => … Read more

How to show user’s own post in a specific page

Try using wp_query Here is the codex link: WP_Query – Docs – WordPress Here is an example of something that may help: global $current_user; get_currentuserinfo(); $authorID = $current_user->ID; $args = array( ‘post_type’ => ‘post’,//or whatever you need ‘posts_per_page’ => 5, ‘author’ => $authorID ); $temp = $wp_query; $wp_query= null; $wp_query = new WP_Query($args); You could … Read more