Mark Shirley
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Display All Posts in a child CategoryThanks and thanks again it works with the “and” your a star I love wordpress cus of guys like you 🙂
Forum: Fixing WordPress
In reply to: Display All Posts in a child CategoryThanks – tried adding your code just got white screen -Im just a cut and paste noob unfortunately.
Forum: Fixing WordPress
In reply to: Display All Posts in a child CategoryThanks bythegram
Just looked again at the codex my problem is I dont know how to integrate the code into my code above.
I have a cat of records (7) that has a child cat of Jazz (9) how do I show just a combination of just records and jazz.Forum: Fixing WordPress
In reply to: Display All Posts in a child CategoryOk I can show all posts that have categories 9 and 7 but how do I show posts that have a combination of categories 9 and 7 only.
– my code below:<?php $my_query = new WP_Query('showposts=10&cat=7,9'); ?> <?php while ($my_query->have_posts()) : $my_query->the_post(); ?> <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"> <div id="wrapper"> <?php the_title(); ?></a> <div class="excerpt-content"> <?php the_excerpt(); ?> </div> <h5>image</h5><a href="<?php the_permalink(); ?>"><img src="<?php the_field('image'); ?>" alt="text-here" /></a> </div> <?php endwhile; ?>Forum: Fixing WordPress
In reply to: Display All Posts in a child CategoryThis is the code im using it’s fine but would love to show to posts based on a combination of categories.
<?php $featuredPosts = new WP_Query(); $featuredPosts->query('showposts=5&cat=9'); while ($featuredPosts->have_posts()) : $featuredPosts->the_post(); ?> <div class="headline-style"> <h1><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h1> </div> <div class="excerpt-content"> <?php the_excerpt(); ?> </div> <h5>image</h5><a href="<?php the_permalink(); ?>"><img src="<?php the_field('image'); ?>" alt="text-here" /></a> <?php endwhile; ?>Forum: Fixing WordPress
In reply to: Display All Posts in a child Categoryadded to post above
If possible only display posts from a combination of categories or child categories.
Forum: Plugins
In reply to: [WP Supersized] [Plugin: WP Supersized] Display correctly on IPADI have sorted the problem I added the code below to my css
#supersized {padding: 0px !important; margin: 0px !important;}
Forum: Plugins
In reply to: [WP Supersized] [Plugin: WP Supersized] Display correctly on IPADHi I have just reinstalled wp supersized and checked it on a ios simulator there appears to be an area of black on the left hand side on both iphone and ipad.
Forum: Plugins
In reply to: [WP Supersized] [Plugin: WP Supersized] stop background from scrollingHi thanks for the reply I did use WP Supersized in the end because it didnt render properly on ipad and iphone. I ended up using pixwall at code canyon. Not sure id WP Supersized has sorted this out yet.
Forum: Fixing WordPress
In reply to: headers not showing child pagesDebbie I think you will need to show a link to your site was your edit in the css or html on a page etc
Forum: Plugins
In reply to: Need a FREE Live Chat pluginBut its not free
Forum: Fixing WordPress
In reply to: Expires headers – in htaccessIm going to add this to top the top of my child theme style.css
and then change the version number when I update the style sheet. But im not sure what the number stands for.@import url('../twentyeleven/style.css?v=20090107');Forum: Fixing WordPress
In reply to: Add excerpt to my WP_queryI’ve done it see below
<?php $loop = new WP_Query( array( 'post_type' => 'movies','actors' => 'peter-smith', 'actress' => 'jane-smith', 'posts_per_page' => 10 ) ); ?> <?php while ( $loop->have_posts() ) : $loop->the_post(); ?> <?php the_title( '<h2 class="entry-title"><a href="' . get_permalink() . '" title="' . the_title_attribute( 'echo=0' ) . '" rel="bookmark">', '</a></h2>' ); ?> <h5>image</h5><a href="<?php the_permalink(); ?>"><img src="<?php the_field('image'); ?>" alt="text-here" /></a> <?php the_excerpt(); ?> <?php endwhile; ?>DONE IT
<?php $loop = new WP_Query( array( 'post_type' => 'movies','actors' => 'peter-smith', 'actress' => 'jane-smith', 'posts_per_page' => 10 ) ); ?> <?php while ( $loop->have_posts() ) : $loop->the_post(); ?> <?php the_title( '<h2 class="entry-title"><a href="' . get_permalink() . '" title="' . the_title_attribute( 'echo=0' ) . '" rel="bookmark">', '</a></h2>' ); ?> <h5>image</h5><a href="<?php the_permalink(); ?>"><img src="<?php the_field('image'); ?>" alt="text-here" /></a> <?php the_excerpt(); ?> <?php endwhile; ?>Forum: Fixing WordPress
In reply to: posts with custom fields displayed on a pageI’ve nearly got what i need with code below I just need to be able to add the taxonomies of actor peter smith and actresss jane brown when calling movies.
<?php $postslist = get_posts('numberposts=4&order=DESC&orderby=date&post_type=movies'); foreach ($postslist as $post) : setup_postdata($post); ?> <div id="post-wrapper"> <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3> <h5>Price</h5> £<?php echo get_post_meta($post->ID, 'price', true); ?> <div id="copy-1"><?php the_field('copy_1'); ?></div> </div><!-- #post-wrapper --> <?php endforeach; ?>