Auto post Spams on my wordpress blog?

You have malware, either by downloading a free theme with malware in it or someone exploited your site. Verifying that I have fully removed a WordPress hack? http://codex.wordpress.org/FAQ_My_site_was_hacked

How to assign a post to a post parrent?

Posts & Pages are “built in” Custom Post Types. So something that was delivered as a pre-configuration when WP was installed. There’s also other built in stuff like Tags & Categories which are basically nothing other than custom taxonomies. And you’re lucky: You can simply use the API and add your own, hierarchical custom “post” … Read more

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.