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

Static page homepage not showing the_content

You don’t really have a Loop. <?php get_header(); ?> <div class=”content”> <div class=”welcome_area”> <div class=”welcome_area_title”><?php the_title(”);?></div> <div class=”welcome_area_text”><?php if (have_posts()) { while (have_posts()) { the_post(); the_content(); } } ?> What is happening is: You use have_posts() to check that you have post content. You can use an else clause to provide default content if you … Read more

Display posts by month

As said in a comment, you can do this in one query. The principle here is to only display the date heading if the post date’s month of the previous post does not match that of the previous post FEW NOTES Before I start, a few notes: Never use query_posts, except if you really need … Read more

Split content into multiple columns using more tag?

Why not just create a few shortcodes for what you need? you can create columns for all kind of uses,, add this to your themes function.php file.. <?php function yourtheme_one_third( $atts, $content = null ) { return ‘<div class=”one_third”>’ . do_shortcode($content) . ‘</div>’; } add_shortcode(‘one_third’, ‘yourtheme_one_third’); function yourtheme_one_third_last( $atts, $content = null ) { return … Read more

Static raw HTML page

Here is what I have in my own .htaccess file that does what you’re looking for: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On Options +FollowSymLinks RewriteBase / RewriteRule ^index\.php$ – [L] RewriteRule ^example.html$ /wp-content/raw/example.html [L] RewriteRule ^download$ /wp-content/raw/download-ebook.html [L] RewriteRule ^thanks$ /wp-content/raw/book-opt-in-thank-you.html [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # … Read more

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