WPDB – Read and write value from / to database

This is still a valid question even if there is an easier way. That easier way is get_user_meta($user_id,’vatnumber’,true); NOT $wpdb->get_user_meta($user_id, vatnumber,”); by the way. Setting the $single flag to true is because although you can store multiple values in a single keyname but this is usually best avoided to avoid confusion. Since you are getting … Read more

Dynamically adding filters

I think you are on the right track, but that last part is messy. You are using the bw_add_markup_class function for two different purposes : to return the classes that you want to add to list the context of the filters that you want to call If I understand well want you are trying to … Read more

Post to WordPress from another Server via PHP

I finally managed to accomplish the task using XML-RPC as suggested by denis.stoyanov. If xmlrpc is installed on your Server simply use the wpPostXMLRPC function from stackoverflow. But keep in mind that the used xmlrpc_encode_request() is an experimental function you usually would try to avoid.

form built dynamically with php, not submitting

Your form does not contain an ID. You need to replace name=”form1″ with id=”form1″. This is because your javascript says, onclick=”document.getElementById(“form1″).submit();” which returns False, because there is no form with the ID “form1”.

Twentyfifteen style author comment

These are CSS classes for styling… comment-author-admin bypostauthor For (your) example: .commentlist .byuser {background-color: black;} .commentlist li ul.children li.byuser {border-top: 10px solid #e18728;}

How do I correct the code in php? [closed]

You are mixing html and php content. You should write it like this: <?php function thumbImg() { if ( has_post_thumbnail() ) { the_post_thumbnail( array(54,54) ); } else { echo “<img src=”https://wordpress.stackexchange.com/questions/216047/{$data[“featured_img’]}’ alt=””.get_the_title().”” />”; } } ?> This way, you don’t need to open and close again the php tag.