{"id":387,"date":"2006-05-03T18:17:55","date_gmt":"2006-05-03T22:17:55","guid":{"rendered":"http:\/\/www.wehuberconsultingllc.com\/wordpress\/?p=387"},"modified":"2006-05-03T18:22:48","modified_gmt":"2006-05-03T22:22:48","slug":"more-hacking-widgetphp-for-wordpress","status":"publish","type":"post","link":"https:\/\/wehuberconsultingllc.com\/wordpress\/2006\/05\/03\/more-hacking-widgetphp-for-wordpress\/","title":{"rendered":"More Hacking widget.php for WordPress"},"content":{"rendered":"<p>I finally to extract most of my hacks from widget.php that I mentioned in <a rel=\"bookmark\" title=\"Permanent Link to Hacking widget.php for WordPress\" href=\"http:\/\/www.wehuberconsultingllc.com\/?p=386\">Hacking widget.php for WordPress<\/a>. I created a widget plug-in called Verse of the Day with the changes since they are for the most unique to the Verse of the Day feed. Despite removing most of my hacks I did leave in one small hack. The widget.php has an IF statement in the widget_rss function that refers to a show_summary field. Since the field is never set in the program logic, it is always false. I wanted it to be true so it would show the RSS item description. In this case I wanted it to show the Quote of the Day from quotationspage.com. I could have forced the show_summary field to be true but by removing the IF statement logic I got another desirable feature and used less code.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I finally to extract most of my hacks from widget.php that I mentioned in Hacking widget.php for WordPress. I created a widget plug-in called Verse of the Day with the changes since they are for the most unique to the Verse of the Day feed. Despite removing most of my hacks I did leave in &hellip; <a href=\"https:\/\/wehuberconsultingllc.com\/wordpress\/2006\/05\/03\/more-hacking-widgetphp-for-wordpress\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;More Hacking widget.php for WordPress&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[3],"tags":[],"class_list":["post-387","post","type-post","status-publish","format-standard","hentry","category-wordpress"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p4iN3d-6f","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wehuberconsultingllc.com\/wordpress\/wp-json\/wp\/v2\/posts\/387","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wehuberconsultingllc.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wehuberconsultingllc.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wehuberconsultingllc.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wehuberconsultingllc.com\/wordpress\/wp-json\/wp\/v2\/comments?post=387"}],"version-history":[{"count":0,"href":"https:\/\/wehuberconsultingllc.com\/wordpress\/wp-json\/wp\/v2\/posts\/387\/revisions"}],"wp:attachment":[{"href":"https:\/\/wehuberconsultingllc.com\/wordpress\/wp-json\/wp\/v2\/media?parent=387"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wehuberconsultingllc.com\/wordpress\/wp-json\/wp\/v2\/categories?post=387"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wehuberconsultingllc.com\/wordpress\/wp-json\/wp\/v2\/tags?post=387"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}