How to preview a page instead of a category?

try and change this line: query_posts(‘posts_per_page=1&cat=7’); to: query_posts(‘posts_per_page=1&page_id=17’); or: query_posts(‘posts_per_page=1&pagename=page-slug’); (enter the actual page ID or page slug into the respective space) http://codex.wordpress.org/Class_Reference/WP_Query#Post_.26_Page_Parameters

How To Display Pages Based On Subscriber Signup Date

Your task is fairly simple given the tools that wordpress provides. Step 1: The date/time a user registers an account at your site at is not naturally recorded by wordpress. You’d have to manually add such a functionality. It would make sense to save that to the wp_usermeta table. Have a look the php time() … Read more

Archive with specific keyword by category sorted by date

Categories will use category.php by default as their archive template (site.com/category/category-name). Customize that with the code you’ve used here, rather than using a ‘page template’. If you don’t want it to say category/ in the URL there are plugins or functions.php code you can use to remove it that can be found numerous times in … Read more

Get moderation notifications on one post only

I solved this issue in the end without using any plugin. The solution works because this is a multi-site install. The procedure is quite simple and painless. I created a ‘contact’ subsite on the subdomain ‘http://contact.example.com’ I moved the contact ‘page’ from the main site to the sub site. I enabled comments on this new … Read more

Adding a filter to wp_edit_posts_query() to prevent hierarchical display of pages

I don’t think it can be done that way, in class-wp-posts-list-table.php I found this line $this->hierarchical_display = ( $post_type_object->hierarchical && ‘menu_order title’ == $wp_query->query[‘orderby’] ); It’s not filtered and it directly depends on the unfilterable attribute “is hierarchical” and the post order set in the admin interface (edit.php). What you can do is to try … Read more

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