How to get all the terms of a post

Well to print each term you could loop through each object and echo the name and description foreach ($terms as $theterm) { echo $theterm->name . ” ” . $theterm->description; } Is this what you are looking for? [EDIT] Updated the answer

My custom widget won’t stay in the widget area after I refresh the widget page

ID Base should be passed to WP_Widget class constructor as shown in the following code, You have passes wrong id “example-widget” which does not match with “id_base”, also don’t add spaces in id base. Replace MY_Widget() function with following modified function and it will work. function MY_Widget() { $widget_ops = array( ‘classname’ => ‘example’, ‘description’ … Read more

Transient Loop Not working as expected

What is the code on line 3645? You didn’t specify. From what I see in your code, $transient_name should be something like “_my_post_list_transient” – a string. If $transient_name is returning a post object, then your call to this function may be the problem.

Using Nonce for my Form

I figured out what I needed to do. I needed if(isset( $_POST[ ‘tdgmt_plugin_noncename’]) && wp_verify_nonce( $_POST[‘tdgmt_plugin_noncename’], plugins_url( __FILE__))){ to be above if($screen->base == ‘settings_page_tgdmt_options_page’){ as well as fixing my typos of tdgmt_plugin_noncename instead of tgdmt_plugin_noncename

Metabox Input Not saving

Look at this code: update_post_meta( $post_id, ‘owl_mb_content’, strip_tags( $_POST[‘owl_mb_content_one’] ) ); update_post_meta( $post_id, ‘owl_mb_title’, strip_tags( $_POST[‘owl_mb_title_one’] ) ); update_post_meta( $post_id, ‘owl_mb_content’, strip_tags( $_POST[‘owl_mb_content_two’] ) ); update_post_meta( $post_id, ‘owl_mb_title’, strip_tags( $_POST[‘owl_mb_title_two’] ) ); update_post_meta( $post_id, ‘owl_mb_content’, strip_tags( $_POST[‘owl_mb_content_three’] ) ); update_post_meta( $post_id, ‘owl_mb_title’, strip_tags( $_POST[‘owl_mb_title_three’] ) ); The second value is the key. Each update overwrites … Read more