Make a category my homepage

You can use pre_get_posts to ‘modify’ the main query to display posts from your specific category only. You will need to use the is_home() conditional to only target the home page of your blog. The parameter cat that you are going to use in your query uses the category ID. You can also use the … Read more

IF have_posts contains posts from a certain category

Per your example, the contents have to be contained in the if/while statement (if they have posts). Otherwise the boxes will appear and the content will be blank, rather than the content AND boxes hidden completely as you want. Try this: <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div class=”box”> <h2 class=”archive-title” style=”text-align:center”>Artikel</h2> … Read more

2 Categories using same template but one has a problem? [closed]

This question as mentioned in the comments is not related to wordpress by any means. But anywho remove the float on your #portfolio-item and add some flex like its 2015. #contentportfolio { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-flex-wrap: wrap; -ms-flex-wrap: wrap; flex-wrap: wrap; } People still play sims?

How can i hide the authors box from a specific set of categories and post types?

This depends on your theme. If it has no option for this, you’ll have to do this yourself. Find the template where the author box is generated (presumably single.php) and copy it to a child theme. Then make the production of the box conditional to the current category; if (!is_category (array (‘exclude-this-category, another-category-to-exclude’)) { echo … Read more

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