Permalink, links a page to the homepage

Can you go to Settings/Permalinks and click Save Changes. That will flush the permalinks. You could look at the ‘Debug wp_redirect‘ plugin. Edit: Another idea is to determine what template file is in use. I have a small function plugin that adds debug comments to the header and footer for logged in Editors or Admins. … Read more

Display future posts in archive

You need to use “OR” instead of “AND”, <?php // Get years that have posts $years = $wpdb->get_results( “SELECT YEAR(post_date) AS year FROM wp_posts WHERE post_type=”post” AND (post_status=”publish” or post_status=”future”) GROUP BY year DESC” ); // For each year, do the following foreach ( $years as $year ) { // Get all posts for the … Read more

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