How to list blog post from subdirectory wordpress install to the main site
How to list blog post from subdirectory wordpress install to the main site
How to list blog post from subdirectory wordpress install to the main site
It’s in your css: body.blog article .entry-summary { position: absolute; body.blog article .entry-header { position: absolute; change it to relative.
A template with a standard loop just outputs the contents of the main query, which is based on the requested URL. WordPress loads specific templates based on the results of the main query, but the template itself isn’t otherwise connected to what the main query contains, that all happens before the template is loaded. If … Read more
I ended up using <?php } else if(is_home()) { ?> <section class=”m-main-hero-single”></section> <section class=”m-single-page-header”> <h1>Blog</h1> </section> and it worked.
Nevermind, I found the answer. I should add the following just below <div class=”col-md-9″> <div id=”page-<?php the_ID(); ?>”> <?php if (have_posts()) : while (have_posts()) : the_post(); if ( has_post_thumbnail() ) : the_post_thumbnail(‘thumbs’); endif; echo get_the_date(‘jS F Y’); the_title(); the_content(); endwhile; endif; ?> </div>
You will get different class name in body tag while on different pages. You can use it and hide navigation. In case of yours – use below CSS .single-ecwd_event #tg-nav{display:none;}
You could add a Custom Link to your Menu. Give it the title “Blog” and just enter your blog URL as the link. That would probably be the quickest solution.
The WP_Query class has the post_status parameter, you could leverage the future status.
In case this is the original sourcecode, there are two asterix pairs, which might break your code (getting interpreted as comments and therefore are not visible). Remove these and it should work. <?php // Start the loop if(have_posts() ) : ?> <?php while (have_posts()) : the_post(); ?> <?php $format = get_post_format(); ?> <article id=”post-<?php the_ID(); … Read more
In the admin area, Go to Settings » Reading, Choose ‘A Static Page‘ from the first set of options & select the two pages you would like to use as the front-page & blog/news page. Hope this helps, G