Tagged Questions
0
votes
1answer
150 views
Trying to get property of non-object wordpress error message
I am running the really-simple-facebook-twitter-share-buttons. I have placed the below code on my site as the plug in recommends, which is:
<div class="share"><?php echo ...
1
vote
2answers
504 views
Undefined property: stdClass::$labels in general-template.php post_type_archive_title()
I've got a custom post type with a standard tag taxonomy added to it like so: 'taxonomies' => array('post_tag'). I've added some tags to some posts of this CPT which are display on the front-end ...
5
votes
1answer
202 views
Hide php Notices in Dashboard
When I program a theme, I put WP-DEBUG on. Which ensure a proper PHP code.
Sadly most Plugin developers keeps using non existing vars :
echo $args['title'];
Notice: Undefined index: title in ...
0
votes
2answers
292 views
Notices when submitting custom post type from front-end
I have a form in a page template that allows users to submit posts into a custom post type from the front-end:
$post = array(
'post_status' => 'draft',
'post_type' => 'stories',
...
0
votes
2answers
212 views
WP_DEBUG is not set, but I'm still getting warnings
If WP_DEBUG is not set, as I understand it, you should never ever see warnings. But on some sites on some servers, I'm still seeing a few. Not all the warnings that would be displayed if WP_DEBUG was ...