I have inherited a WP site where some home page slides are pulled using
<?php $po = get_posts( array('post_type' => 'page', 'meta_key' => 'Home Slide', 'order' => 'ASC', 'orderby' => 'menu_order', 'posts_per_page' => 5 ) ); ?>
The site owners want these slides changed but the Home Slide meta_key is not exposed in the UI.
I tried passing this to add a page (via the home page template).
<?php update_post_meta( 135, 'meta_key', 'Home Slide' ); ?>
And this to remove a page
<?php update_post_meta( 146, 'meta_key', '', 'Home Slide' ); ?>
But this did not appear to have any effect.
What is the correct way to either expose this in the UI or make changes/additions to it?
Also- these are sorted on menu_order. Does that mean that, as they are now, I need to re-order them in the site menu in order to change their order?