Display grandchild page content on parent page

From your question I understand that inside the top level page you want to indicate which child page to include. The obvious way to do this is using a shortcode. So in your functions.php you would have something like this: add_shortcode( ‘insert_child’, ‘wpse240522_insert_child’ ); In the content of your top level page you would have … Read more

Get child pages in get_pages function

There is a function get_page_children available for this purpose, have a look on the documentation and examples. https://codex.wordpress.org/Function_Reference/get_page_children

Supress listing of virtual pages

The only way is to use the filter in the Recents from developer.wordpress.org WP_Widget_Recent_Posts::widget $r = new WP_Query( apply_filters( ‘widget_posts_args’, array( ‘posts_per_page’ => $number, ‘no_found_rows’ => true, ‘post_status’ => ‘publish’, ‘ignore_sticky_posts’ => true ) ) ); Best way will be, to add a category to the post your submit from frontend. add_filter(‘widget_posts_args’, ‘wpse_244383’); function wpse_244383(){ … Read more

Press This for Page

The press_this_save_post filter can be used to change the post type from post to page. Add the following code to your theme’s functions.php or a plugin: add_filter( ‘press_this_save_post’, ‘wpse244633_press_this_save_post’ ); /** * Filter the post data of a Press This post before saving/updating. * * @param array $post_data The post data. * @return array */ … Read more

problem with loading pages

It is impossible to guess what is breaking your site without hands on debug. In general to debug redirect issues I always recommend Better HTTP Redirects plugin, which has debug mode to stop redirects in process and help figure out which code is generating them.

How to insert current user ID in a shortcode?

You didn’t say how you were going to implement the code: If you are using page templates or custom post pages, you could do this: <?php $user_id = get_current_user_id(); if ($user_id == 0) { echo ‘You are currently not logged in.’; } else { echo do_shortcode(‘[pods-form name=”user” id=”‘.$user_id.'” fields=”my_field, my_field_2, my_field_3″]’); } ?> are you … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)