Multiple Pages – Seperate blogs

Go to settings in your dashboard and then to “reading” change your homepage to a static page. This page will then load whenever you load the main site url. You can then create the other 7 pages and add whatever content you want to those pages. Make sure if your menu (appearances/menu) isn’t adding them … Read more

Blog Post slider not working

What happens if you use .css(“display”,”none”) instead of .style.display = “none”? So that it looks like this: var myIndex = 0; carousel(); function carousel() { var i; var listItem = document.getElementsByClassName(“js–slider-item”); for(i = 0; i < listItem.length; i++) { listItem[i].css(“display”, “none”); } myIndex++; if(myIndex > listItem.length) { myIndex = 1; } listItem[myIndex-1].css(“display”, “block”); setTimeout(carousel, 3000); … Read more

My posts page is missing the page title

The display of ‘things’ on your blog page is usually dependent on the theme. You can verify this by switching to one of the ‘twenty’ default themes and redisplay the page. If the title appears, then you have verified that the problem is a theme problem. If you verify a problem with the theme, then … Read more

Change the template of my Blog entries

For most WordPress based sides, you can look at the classes on the body tag to find out what kind of content is being shown, a single post, a post archive, the front page etc. In your case, it’s post-template-default single single-post postid-2897 single-format-standard wpb-js-composer js-comp-ver-5.0.1 vc_responsive, so this is a single post that is … Read more

Get posts from category from custom query

I figured it out. Here is my solution <?php $categories = get_the_category(); $category_id = $categories[0]->cat_ID; $mymain_query = new WP_Query( array( ‘cat’ => $category_id,’posts_per_page’ => ’10’ ) ); while($mymain_query->have_posts()) : $mymain_query->the_post(); ?> //shortened code below <div class=”blog-post”> <h5><?php the_title(); ?></h5> <p><?php the_content(): ?></p> </div> <?php endwhile; ?> <?php wp_reset_postdata(); // reset the query ?>

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