How do I visit archive-post.php?

You don’t, archive-post.php doesn’t exist, it’s just archive.php, and on most sites the post archive is the root of the site, aka /. Depending on how you’re viewing posts it’ll use home.php, front-page.php, index.php, etc. You should refer to the template hierarchy diagram, but remember, the standard post post type is a special case, as … Read more

Archive widget – limit number of months to 12

Use the widget_archives_args filter to add the archives limit. function my_limit_archives( $args ) { $args[‘limit’] = 12; return $args; } add_filter( ‘widget_archives_args’, ‘my_limit_archives’ ); And to limit the number of months in Archives widget dropdown use the following drop down filter. add_filter( ‘widget_archives_dropdown_args’, ‘my_limit_archives’ );

Post Format Archive template name for theme folder?

Well…. for querying, formats are a taxonomy parameter…so that should work…. http://codex.wordpress.org/Class_Reference/WP_Query#Taxonomy_Parameters Lemme loook… And yep, here’s how that works http://codex.wordpress.org/Template_Hierarchy#Custom_Taxonomies_display taxonomy-post_format-post-format-link.php

How to get the category of the post and link it to the archive (of the category)

One these three should do the job for you… 1. Function: the_category(); News su <?php the_category(‘, ‘); ?> Displays as: News su WordPress, Computers, Blogging And if only a single category is assigned to a post, it shows up like this: News su WordPress 2. Function: get_the_category_list(); <div id=”pagine”><?php echo get_the_category_list(); ?></div> Displays as: <div … Read more

Create an “All Posts” or “Archives” Page with WordPress 3.0?

Create a new template file and do this as the loop: query_posts( array( ‘posts_per_page’ => -1, ‘post_status’ => ‘publish’ ) ); if( have_posts() ): echo ‘<ul>’; while( have_posts() ): the_post(); echo ‘<li><a href=”‘; the_permalink(); echo ‘”>’; the_title(); echo ‘</a></li>’; endwhile; echo ‘</ul>’; endif; wp_reset_query(); Then just use that template for a page and it’ll automatically … Read more

WP 3.1 – archive pages for custom content types possible now without a plugin?

Yes, you’ll just need to set the has_archive parameter to true or your chosen slug when registering your custom post type. So firstly add the has_archive parameter to your post type, here’s an example… add_action( ‘init’, ‘question_10706_init’ ); function question_10706_init() { register_post_type( ‘example’, array( ‘labels’ => array( ‘name’ => __(‘Examples’), ‘singular_name’ => __(‘Example’) ), ‘public’ … Read more

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