Dynamic Page Listings in #WP

Here is how-to dynamically list all children pages associated under a parent page in WordPress.

linking
linking

This allows you to change and update pages without updating a sidebar widget/page, and removes the need to create numerous distinct sidebars/sections.

To enable this code, add it to your WordPress themes functions.php file, then add the shortcode to the page/widget or template.

The Code

Isaac Adams-Hands

Full Stack Developer, Digital Marketer, and InfoSec enthusiast. He received his Bachelor’s Degree from the University of Western Sydney and his Business Diploma from Georgian College before joining various marketing positions in search portals, e-commerce, higher education, and addiction recovery services.

Follow @ twitter

Related posts

Remove unwanted script from WP Header

I’ve noticed that WordPress adds tons of unwanted script to the header. I totally get why, but for highly focused themes, I like to remove as much as I can. This decreases page load times, eliminates render-blocking resources, and optimizes the First Link Priority Rule. The Script Using the script below, add it to your… Read More

How to hide Gravity Form field labels

If you want to add support to hide field labels on a field by field basis, simply add the following line of code to your themes (functions.php). Make sure to remove the opening and closing php tags add_filter( ‘gform_enable_field_label_visibility_settings’, ‘__return_true’ ); What this code does is adds a Field Label Visibility dropdown under the Appearance… Read More