metabox select – frontend display

$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 below should work… $change = get_post_meta( $post->ID, $key, ‘resume_change_location’, … Read more

Static page not working

I find the solution of your problem. In this theme, you can’t set page as home or front page, so your setting in Setting >> reading >> Your latest posts check. For blog page you can select template in your Blog page Page Attribute Template option as Blog or Blog template with large image. You … Read more

Wrapping result of the_terms in a span with a class of the term name

Generally speaking in the WordPress world, functions prefixed with the_ will output results immediately. Functions prefixed with get_ will return the results without outputting them. The function get_the_terms() can be used to achieve the desired results. Here’s a complete function that’s essentially a wrapper for get_the_terms() with a little bit of extra formatting: /** * … Read more