ProbablyBest
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Removing featured image from single postspot on! Thank you for your help 🙂
Forum: Fixing WordPress
In reply to: Removing featured image from single postI think that could be the answer? Whats the best way to wrap an if statement in another if statement?
<?php if ( has_post_thumbnail() && ! post_password_required() ) : ?> <div class="entry-thumbnail"> <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" > <?php the_post_thumbnail('full', array('class' => 'img-responsive')); ?> </a> </div> <?php endif; ?>Forum: Fixing WordPress
In reply to: Removing featured image from single postI dont know how else to answer this questions. I build websites. It is a custom HTML & CSS theme, using a bootstrap grid that. I designed it in photoshop. It is using a basic twentythirteen functions.php.
Forum: Fixing WordPress
In reply to: Removing featured image from single postits using the basic twenty thirteen functions.php but the rest is custom.
Forum: Fixing WordPress
In reply to: Removing featured image from single postIts not downloaded, its a custom theme.
Forum: Fixing WordPress
In reply to: Excerpt showing instead of contentI should state I did create my own custom theme before adding that in.
Forum: Fixing WordPress
In reply to: Excerpt showing instead of contentFor anyone who has a similar problem to way to fix this is to add the below line to your content.php
<?php if ( is_search() || is_author() || is_tag() || is_archive() || is_home () ) : ?>Forum: Plugins
In reply to: [CPT Bootstrap Carousel] CPT bootstrap carousel only showing 10 postsBrilliant! That worked a treat. Thank you very much 🙂
Forum: Themes and Templates
In reply to: show page title via slug on homepageBrilliant, that’s perfect. Thank you for your help 🙂
Forum: Themes and Templates
In reply to: show page title via slug on homepageI have managed to fix it by the following
<?php // query for the about page $your_query = new WP_Query( 'pagename=about' ); // "loop" through query (even though it's just one page) while ( $your_query->have_posts() ) : $your_query->the_post(); the_title(); the_content(); endwhile; // reset post data (important!) wp_reset_postdata(); ?>However it wont let me put in any html around it. Is there anywhere to pull in a page slug that allows you to add HTML?
Forum: Themes and Templates
In reply to: show page title via slug on homepageno its not the html 5 causing the issue it doesn’t like have <?php the_title(); ?> and <?php the_content(); ?> written in that way. it only works if content is written like the_content();
Forum: Themes and Templates
In reply to: show page title via slug on homepagethank you for getting back to me however that has caused an error.
This is the updated code:
<?php // query for the about page $your_query = new WP_Query( 'pagename=about' ); // "loop" through query (even though it's just one page) while ( $your_query->have_posts() ) : $your_query->the_post(); <h3 class="entry-title"><?php the_title(); ?></h3> <div class="entry-content"><?php the_content(); ?></div> endwhile; // reset post data (important!) wp_reset_postdata(); ?>Forum: Themes and Templates
In reply to: Using Font Face Icons as categoriesI’ve just edited straight into twenty eleven and customised it how I want.
You can view it here http://www.mhutchinson.me.uk
Forum: Themes and Templates
In reply to: Adding a class to post_classThanks! Exactly what I needed 🙂
Forum: Themes and Templates
In reply to: Removing the read more from excerptThanks i was on this but I wasn’t sure what to implement?