How to echo every parent page title?

Check Post & Page Parameters or get_page_children(). <?php global $post; $args = array( ‘post_type’ => ‘page’, ‘posts_per_page’ => -1, ‘post_parent’ => $post->ID, ‘order’ => ‘ASC’, ‘orderby’ => ‘menu_order’ ); $parent = new WP_Query( $args ); if ( $parent->have_posts() ) : ?> <?php while ( $parent->have_posts() ) : $parent->the_post(); ?> <div id=”parent-<?php the_ID(); ?>” class=”parent-page”> <h1><a … Read more

Redirect From Url To Url

The easiest way to do is by using Redirection plugin. Follow these steps: Install and activate the plugin. Head to Tools > Redirection. Enter your Source URL (example.com/car/cadillac/image/) and Target URL (http: example.com/car/cadillac/). Finally, click on “Add Redirection” button.

how can i remove page title on desktop view

Write the CSS into style.css file @media only screen and (min-width: 768px) { .single-product .title-desc { display: none; } } .single-product CSS will only work on single product details. It will not create any issue on other pages.

How to code custom special page

Because you asked “How to Code”, here is my guide to get you started. Create a menu page in the administration area using add_menu_page Create the form using html select form-element Populate the form-element with all pages. To get all pages you can use get_posts() Save the form using admin_post action Save the selected-item of … Read more

Intercept page request and add value to it

WordPress doesn’t add the vid to the $_REQUEST array. Instead, it’s saved in a class property — see WP::$query_vars which is an array. And to access the value of items in that array, use get_query_var() like so in your case: $vid = get_query_var( ‘vid’ ); echo “vid value is $vid”;

Show FormCraft form on page open [closed]

From the documentation, you have to use the shortcode: [fc id=’12’ type=”popup”][/fc] Next, something has to trigger the form, you can create a button for that and then click it from jQury, edit the link which would trigger this form, and put the href or hyperlink to: <a class=”triggerForm” href=”http://yoursite.com/form-view/12″>Link Trigger</a> jQuery trigger. $(document).ready(function () … Read more

Getting ACF Field in Page – From the Footer

I have the same issue, the acf get_field() function in footer returned null. Native WP function get_post_meta( get_the_ID(), ‘option_key’, true ) didn’t work to. But when I’ve noticed that get_the_ID() function in footer returned the wrong value because I forgot to reset query after custom WP_Query. So, reset custom WP_Query (wp_reset_query()) or hard code the … Read more