Sort All Posts by Category Name in the Admin Panel?

zip, you might need to save your category as a new post meta first, that’s how orderby meta_value works. Not sure if this could help, I stumbled upon this plugin: http://wordpress.org/plugins/custom-post-order-category/, it could let you specified a category then order posts in that category. If you’re curious about how to save category into a post … Read more

Stop post submission without losing data?

I had to do the exact same thing with a custom post type that would be useless and cause theme problems without metadata. You’ll have to either A. Check the post for metadata AFTER it has been published using the transition_post_status hook, and if the metadata isn’t there, change the status to “draft” and throw … Read more

wordpress post not showing my “” text>?

You have to escape th < and the > with &lt; and &gt;, otherwise WordPress will remove the “unknown tags”. You could also filter pre_kses to change the output before it gets stripped. add_filter( ‘pre_kses’, function( $str ) { // find and escape < and > on specific positions, then return $str; });

Email notification of new post includes code

You surely copied the content directly from the Microsoft Word. Because that MsoNormalTable thing I found in the texts when copied directly from MS Word. Copying directly from MS Word takes some formatting along with it. So, you can try any of the methods either : Copy the texts from MS Word, and paste them … Read more

Date is wrong on ‘all posts’ page

It could be because you are not supplying post id in time parameter function. In place of the_time(‘d F’) try using echo get_the_time(‘d F’m $post->ID) because it will give you the flexibility to supply post id when you are in a loop. Reference: get_the_time Codex EDIT My bad, I guess $post variables are not being … Read more

Can i have more than one form for front end posting in one template [closed]

Yes. You can check which form is being submitted by adding a “name” attribute to the submit button. <input type=”submit” name=”form1″ value=”Submit”> Then in you validation, just check if that exists: if(isset($_REQUEST[‘form1’])){ // Form 1 } elseif(isset($_REQUEST[‘form2’])) { // Form 2 } This is one method at least, there are plenty of ways to deal … Read more