Alphabetizing Posts in a Category Page?

As I have stated, never ever use query_posts. The page you have linked to in the codex is worth nothing and completely wrong. For extra info on why not to use query_posts, check my answer here and the answer by @Rarst. You have another issue here, category_name does not accept the category name as value, … Read more

Custom Post Type slug same as page name causing a conflict

What is appearing at http://www.example.org/team-members/ is the ‘post type archive’ for your post type. It’s the automatically generated list of posts created by WordPress. If you don’t want the post type to have an archive you can disable the archive by setting the has_archive argument to false: register_post_type( ‘post_type_name’, array( ‘has_archive’ => false, ) ); … Read more

Display Posts of a Category in Alphabetical Order (Custom Post Type)

Use the pre_get_posts action to modify the query before it is run. Place this in your theme’s functions.php: function wpd_tax_alpha( $query ) { if ( $query->is_tax(‘link-category’) && $query->is_main_query() ) { $query->set( ‘orderby’, ‘title’ ); $query->set( ‘order’, ‘ASC’ ); } } add_action( ‘pre_get_posts’, ‘wpd_tax_alpha’ );

How to make an archive page displaying posts in a date range

Saving the date in post meta is a slightly more sane approach, the post_date column was not designed with your use case in mind. You may get weird results with dates before the Unix epoch (January 1, 1970). Then it’s just a simple meta_query to load posts between dates, no filter necessary. $start=”1900-01-01″; $end = … Read more

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