Displaying child pages and file URL in an ACF relationship field shortcode
Displaying child pages and file URL in an ACF relationship field shortcode
Displaying child pages and file URL in an ACF relationship field shortcode
wordpress handle this using rewrite rules. in fact worpdress does redirect /bar to /foo/bar by default but it’s need rewrite rules to be configured correctly. maybe some plugin or custom rules is interrupting the default rewrite rules. try click on Save Changes in Settings > Permalink and see if auto redirect is fixed or not.
They aren’t “files” or “folders” per se, but you could achieve that URL structure. Custom code to create custom post types and taxonomies would be the ideal way, as that could then be filtered, searched, etc. However, you could also do this in a no-code way by adding Pages at each level. It’s difficult to … Read more
Add the parameter hierarchical to the array with value true. This will allow you to create child posts on your CPT. Source: https://developer.wordpress.org/reference/functions/register_post_type/#parameters
How to create archive child pages with good Yoast SEO meta?
I have a website issue I am trying to resolve
I tested this as a function. You can place it in your footer or functions.php theme file and call it in your themes footer section. See the comments for links to the functions used. function wpse_101774_footer() { // Start this part of footer on new line. echo “\n”; foreach ( array( 14, 19 ) as … Read more
Just change the ‘child_of’ => $post->ID argument to ‘child_of’ => 61, or whatever the ID of the parent page is.
I do this quite often, actually, if I’m understanding your issue correctly. If you use Appearance > menus, and create your navigation (with dropdown/children), then pull in the Custom Menu widget into the sidebar, you can use CSS to handle the rest. Basically, you just set the main navigation in the header to how the … Read more
If I’m understainding you correctly, you’ve hardcoded the wp_list_pages() function in to the widgetized area of the theme’s sidebar, and then, when you add a widget using WordPress’ back end Appearance->Widgets then you no longer see the output of the wp_list_pages() function? If that’s the case, then I think we’ve found your problem. If code … Read more