Featured Posts Code – Repeated featured posts

After discussing in chat and seeing the parent index.php file: http://pastebin.com/27r0FJ3x The main loop in loop.php is not actually the main loop at all: <div id=”main” class=”<?php echo $containerWidth; ?>” role=”main”> <?php get_template_part(‘breadcrumbs’); ?> <?php if ( have_posts() ) { ?> <?php while ( have_posts() ) { ?> <?php the_post(); ?> <?php get_template_part( ‘loop’, get_post_format() … Read more

Adding a ‘featured’ class to certain posts

WordPress by default provides such feature named “Sticky Posts”. you can mark any post as sticky from “Quick Edit” link. and WordPress will add a post class named sticky with all sticky posts. so you can use this class in your CSS for giving custom styles. and another solutions is to create custom post meta … Read more

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