Displaying warning if no featured image has been set – Post Editor

you can hook yourself into save_post and check there if the image is present. if it is not there fire an admin_notice. more here https://wordpress.stackexchange.com/a/15355/32776 http://codex.wordpress.org/Plugin_API/Action_Reference/save_post Edit: I dont have the time to provide working code but here is a copy paste from the links above. i think that you have to figure what the … Read more

save_post not working

Try this: add_action( ‘save_post’, ‘vg_update_timestamp’, 0, 1 ); May be this will help… I think i made a little mistake…But i am little confused about priorities… so try this: add_action( ‘save_post’, ‘vg_update_timestamp’, 10, 2 ); Because, Docs says Lower numbers correspond with earlier execution, and functions with the same priority are executed in the order … Read more

Permalink remain the same on each page

Firstly, you should never use query_posts to construct custom queries. This is not just my emphasis, but the codex as well. The one big problem with query_posts is, it many circumstances, pagination fails Note: This function isn’t meant to be used by plugins or themes. As explained later, there are better, more performant options to … Read more

How to show only the date, the title and a little “summary” of my WordPress post in my custom theme?

The get_template_part(‘content’, get_post_format()); line includes content from one of the other files in your theme based on the post type, the file name will be something like content-page.php (or content.php if the format is not found). If you print out what get_post_format() returns, you will be able to tell which content file to look into. … Read more

Display all posts from selected month

You can use the pre_get_posts action to set posts_per_page to -1 on the monthly archive pages. I said wrongly in a comment to use is_archive() as your conditional. The problem with is_archive() is, it returns true on all archives, which includes category and taxonomy archive pages as well. I would suggest to make use of … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)