In admin panel, use a form to create a post?

You could create a custom metabox with those items as custom fields and then either remove support for the editor or hide it with CSS. Then output the post meta instead on the front end. Be aware that if you remove support for the editor, you’ll have funky behavior with media attachments. Edit: If you … Read more

Prevent 404 of Author pages without posts

Why should you get redirected to the 404 page if you display an author archive without posts? This isn’t the default behavior of WordPress. For example, if you go to the following URL: http://example.com/{permalink_base}/author/{author_name} WordPress calls the author.php template inside your theme folder. There you have a loop which will return all posts of the … Read more

Get timestamp of latest post in C#

WordPress is not written in these languages and have no assumed way to interact with them. You can access such info by connecting to WP database or by accessing WP-generated RSS feed, whatever is easier for tools you need to use.

Display content between two dates?

<?php <br /> function filter_where($where=””) {<br/> $where .= ” AND post_date >= ‘1980-05-11’ AND post_date <= ‘2011-05-11′”;<br/ > return $where;</br> }<br/> add_filter(‘posts_where’, ‘filter_where’);<br/> query_posts($query_string);<br/> while (have_posts()) :<br/> the_post();<br/> the_content();<br/> endwhile;<br/> ?> get meta data value and replace with the numeric date.