WordPress Custom Fields Won’t Save

It seems you have one error in your code… if($id == $author_id){ $selected = ‘ selected=”selected”‘; } It should be $building_id instead of $author_id. I tested the rest of the code and the saving is working fine. If you had printed/echoed out the value of this line … $building_id = get_post_meta($post->ID, ‘p2p2_building’, true); like print_r($building_id);, … Read more

I’d like to cycle through existing posts in a post type, showing one per day ordered by title, and starting over when the last is reached

To summarize, I’m creating a custom WP Schedule event that checks once a day to see if any of my “member” custom post type posts are marked as sticky, and if so, removes them from the stickied post options table, then it randomly assigns another single member post as sticky. (I’m displaying this random post … Read more