Latest post showing up as main title of page on blog page
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.
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.
In principle PHP can do this with exec(), so WordPress can as well. You do not specify enough details, but it sounds either like form submit or Ajax request. Different implementation but in the end you will be running exec() just as well. PS think really hard on how secure it will be and which … Read more
Welcome to WordPress! I’m going to assume you’re creating your first theme. I would start by reading about The Loop http://codex.wordpress.org/The_Loop which is a crucial concept for WordPress themes. If you designed your homepage within the WordPress admin by going to Pages, adding a new page, and putting your static homepage markup in the content … Read more
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>
I would suggest you to take a look at your page.php file, where you need to add a php code calling the sidebar.php file. If that doesn’t work, try using Underscores to design your website. It’s a base theme for WordPress. It’s only the default files with no customization. You have to design everything from … Read more
There are many possibilities that causes this error. There might be your theme is not comaptible to wordpress 4.6.1 Please make on debug mode by writing change below lines in wp_config.php from define(‘WP_DEBUG’, false); to define(‘WP_DEBUG’, true); and add below line to make debug log on define(‘WP_DEBUG_LOG’, true); And then run your front end and … Read more
If you want to show pagination in home page then it require one change like in following line of your code $paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1; You need to replace your query variable like paged (get_query_var(‘paged’)) with page because in other pages we use paged but in home page for pagination we have … Read more
i have got my answer. it should be query like <?php query_posts (‘post_type=post&post_status = publish&posts_per_page10&paged=’. get_query_var(‘paged’)); ?>
The title isn’t mentioned anywhere in that code, have they included it in the actual content? If so, you could remove it using a str_replace: $content = str_replace( get_the_title($id), ”, $content);
You need to remove the archive description automitically generated by genesis. Look in your archive page template and remove(*) something like do_action(‘before_archive_posts’); (*) You can update your question with your archive template code. As I don’t use this theme, I don’t know the right name, and more details you could remove this action easily in … Read more