Tag Info

New answers tagged

0

Have you included the required bootstrap .js files? If so it should open the dropdown on click. If you didnt want it to work like that you may add css to open the dropdown, However the markup would need to be changed. You can use a nav walker to produce the output you want.


0

$change = get_post_meta($post->ID, $key, 'resume_change_location', true); From https://developer.wordpress.org/reference/functions/get_post_meta/ get_post_meta returns an array, not an object so you need to use $change['index'] The other thing is within your meta box you seem to be saving a string not an array so foreach is going to fail. The ...


0

To remove grand-children: <?php $args = array( 'show_option_none' => 'Make', child_of => 5, hide_empty => '0', exclude => '0', hierarchical => 1, depth => 1 ); ?> <b>Make </b><?php wp_dropdown_categories($args); ?> You need to add the hierarchical and depth parameters.


0

The 'child_of' argument lets you select subcategories from a parent category, and a you can get the current taxonomy id to pass as the value: <?php $category_id = get_queried_object_id(); $args = array( 'hide_empty'=>1, 'depth'=>1, 'hierarchical'=> 0, 'show_count'=> 1, 'taxonomy'=> 'portfolio-types', 'child_of' ...


0

As pointed out by @karun, the text first needed to be made into a hyperlink, after which the formats became active. Changing the array values to array( 'title' => 'Grey Button', 'block' => 'div', 'classes' => 'cta gry' ), made the style permanently available.



Top 50 recent answers are included