Add custom field value after title in wp_dropdown_pages function?
-
Is there any way to append a custom field value after the title of a page in the wp_dropdown_pages function?
This is what I have now:
<form action="<?php bloginfo('url'); ?>" method="get"> <?php $select = wp_dropdown_pages( array('post_type' => 'page', 'show_option_none' => '— Select —', 'child_of' => 6, 'sort_column' => 'post_title') ); echo str_replace('<select ', '<select onchange="this.form.submit()" ', $select); ?> </form>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Add custom field value after title in wp_dropdown_pages function?’ is closed to new replies.