How do I make the main page be the blog page and not a separate “home” page?

There are two possible settings for this in WordPress. Option A Your front page (http://twistedtalesoftimmy.com/) is dynamic and shows the latest blog posts. Option B Your front page (http://twistedtalesoftimmy.com/) is static and points to a regular page in WordPress. There is another page (e.g. http://twistedtalesoftimmy.com/blog/) that shows the latest blog posts. You can switch between … Read more

Show only preview of posts on the homepage?

Look somewhere after the “Loop” starts (it starts with <?php while( have_posts() ): the_post(); ?>) in your index.php file. Find <?php the_content(); ?> and change it to <?php the_excerpt(); ?>. If you don’t want any content, just remove the_content() all together. If you’re using a theme from wordpress.org, it would best to do this in … Read more

How to display recent posts on home page with custom HTML

<div id=”posts”> <?php // define query arguments $args = array( ‘posts_per_page’ => 8, // your ‘x’ goes here ‘nopaging’ = true // possibly more arguments here ); // set up new query $tyler_query = new WP_Query( $args ); // loop through found posts while ( $tyler_query->have_posts() ) : $tyler_query->the_post(); echo ‘<section class=”post”>’. ‘<h2><a href=”‘. get_permalink(). … Read more

Custom /page/2/ template (different from index.php)

I would use the is_paged() conditional inside index.php to load two separate templates containing your layouts. Something like this: if ( is_paged() ): get_template_part( ‘content’, ‘first-page’ ); else: get_template_part( ‘content’, ‘paged’ ); endif; Assuming you have two templates, content-first-page.php and content-paged.php. Edit: If you just want a different template for part of your index page, … Read more

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