handling the featured category

as moraleida mentions, your setup is a custom implementation specific to your theme, not native to WordPress. rather than use a category, I would use post metadata to designate posts as featured. I would additionally create a custom meta box to designate the post as featured, that way, on the back end, I can store … Read more

show div only if have a related post inside

move the div section from the start to after the if(have_posts()) { line, and move the corresponding closing divs to just before the closing bracket } of this if statement; full code: <?php global $post; $terms = get_the_terms( $post->ID , ‘movies’, ‘string’); $do_not_duplicate[] = $post->ID; if(!empty($terms)){ foreach ($terms as $term) { query_posts( array( ‘movies’ => … Read more

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