how can i display children of my parent page in one of the children page (wordpress)

if you want to display all child pages of parent page in the child page then you can try this. it will display child page title and its links. $current_page_id = get_the_id(); $parent_id = wp_get_post_parent_id( $current_page_id ); if(!empty($parent_id)) { $child_args = array( ‘post_type’ => ‘page’, ‘posts_per_page’ => -1, ‘post_parent’ => $parent_id, ‘post_status’ => ‘publish’, ‘order’ … Read more

Shortcode runs when editing page

I’ve faced a similiar situation on couple of occasions. In my case the shortcode getting rendered on the text editor was caused by the shortcode echoing instead of returning its content. As noted on add_shortcode Codex entry, Note that the function called by the shortcode should never produce output of any kind. Shortcode functions should … Read more

Add the same content to multiple pages

You can do it with WP-CLI. wp post create will create a post. wp post create ./file.txt –post_status=Publish where file.txt contains the content you want to add (in HTML format). To post it multiple time use a for loop. You can use wp post update if you want to update existing post. First step check … Read more

Create Custom page with custom domain

Changing the way WordPress uses permalinks is quite a simple process. You won’t need to install any plugins to do this. To access the settings for permalinks: Go to the “Settings” section of your WordPress dashboard One the left side of the dashboard under the “Settings” control, you should see one for “Permalinks.” This is … Read more