-
Creating a wordpress shortcode
Thank Jane. Although wp show posts does not do quite what I need, I did find Custom Views which is perfect, although I did have to buy the pro version so as to display custom posts and fields. Working example of that I want here: http://www.courtney.co.za/subjects/mathematics-9709/ That said, would still love to know how to write the shortcode to achieve this, if anyone know how :-)
-
Creating a wordpress shortcode
Hi JAck. Thank you for the response. I have already what you suggest ... http://www.courtney.co.za/booklevel/a-level/ list of all books for a level students or here http://www.courtney.co.za/booksubjects/biology/ a list of all books relating to the subject biology. The reason I want the shortcode is so on certain pages, say were we discuss the subject A-Level biology, I can place the little thumbnail and book title relating to that particular pages content. Any thoughts?
-
Creating a wordpress shortcode
Hi, hoping someone can help me. I have created a custom post type called "books". I neede a shortcode to display a thumbnail image of the featured image and the name of the post. Both being so you can click them and you will go to the post page. The shortcode must be able to display a specific post according to post id, so something like this: [listbook id="2456"] I have tried a few hundred things and am just not managing to do this. The basic html structure would be something like this: <dl class="book"> <dt><a href="#">thumbnail</a><dt> <dl><a href="#">Book Title</a><dd> </dl> Just learning wordpress and PHP and finding this project beyond my abilities!
-
Show custom post category for posts on archive page
Okay, I have managed the following which is working ... <?php if ( have_posts() ) : ?> <header class="page-header"> <h1 class="page-title">The Courtney Team</h1> </header> <?php $posts = query_posts( $query_string . '&orderby=title&order=asc' ); ?> <?php while ( have_posts() ) : the_post(); ?> <div class="blog-post-repeat"> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <header class="entry-header"> <h3 class="post-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h3> <div class="postmeta"> <div class="post-date"><?php echo get_post_meta( get_the_ID(), 'designation', true ); ?></div> <div class="post-categories"> <?php $terms = get_the_terms( $post->ID , 'team_category' ); if ( $terms != null ) { foreach( $terms as $term ) { $term_link = get_term_link( $term, 'team_category' ); echo ' | <a href="' . $term_link . '">The ' . $term->name . ' Team</a>'; unset($term); } } ?> </div> <div class="clear"></div> </div> <div class="post-thumb"><a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('thumbnail', array('class' => 'alignleft') ); ?></a></div> </header> <div class="entry-summary"> <?php echo content( of_get_option('blogpostexcerptlength') ); ?> <p class="read-more clear"><a href="<?php the_permalink(); ?>">Read full biography</a></p> </div> </article> <div class="spacer20"></div> </div> <?php endwhile; ?> <?php study_circle_pro_pagination(); ?> <?php else : ?> <?php get_template_part( 'no-results', 'archive' ); ?> <?php endif; ?> Specifically to pull the custom_post categories I am using the following: <?php $terms = get_the_terms( $post->ID , 'team_category' ); if ( $terms != null ) { foreach( $terms as $term ) { $term_link = get_term_link( $term, 'team_category' ); echo ' | <a href="' . $term_link . '">The ' . $term->name . ' Team</a>'; unset($term); } } ?> So now I have the categories displaying, I would like to know, is this the best method?
-
Show custom post category for posts on archive page
Hi. i am building a team section for my site. I have created a custom post section called team, with a taxonomy. All I want to do is display the category for each post on my archive page. <ul><?php $customPostTaxonomies = get_object_taxonomies('team'); if(count($customPostTaxonomies) > 0) { foreach($customPostTaxonomies as $tax) { $args = array( 'orderby' => 'name', 'show_count' => 1, 'pad_counts' => 0, 'hierarchical' => 1, 'taxonomy' => $tax, 'title_li' => '' ); wp_list_categories( $args ); } } ?> </ul> <?php $args = array( 'post_type' => 'team', 'posts_per_page' => $show, 'post__not_in' => get_option('sticky_posts'), 'orderby' => 'title', 'order' => 'asc' ); $loop = new WP_Query( $args ); ?> <?php while ( $loop->have_posts() ) : $loop->the_post();?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <header class="entry-header"> <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('thumbnail', array( 'class' => 'alignleft' ) ); ?></a> <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a> <?php echo esc_html( get_post_meta( get_the_ID(), 'designation', true ) ); ?> </header> <?php echo content( of_get_option('teammemberlength') ); ?> <p class="read-more"><a href="<?php the_permalink(); ?>"><?php echo of_get_option('blogpostreadmoretext'); ?></a></p> </article> <?php endwhile; ?> Any thoughts?
-
Any suggestions or advice
Thanks Pete Prosper The site is for my sister who is into art, craft and poetry... She is an amazing person who has an inspirational story to tell, so this is my sort of way of encouraging her. I am just not sure about the design .. I want something that reflects the craft side of her work but can still be a good base for showing art work and such. I just can't help feeling that it looks dated... perhaps it is the fixed width look of yesterday ... not sure. Also, I wish I could get some of her poetry and stuff as that will make it a journey, if you will and I am a big believer in copy is king, so maybe that is what is bugging me....
-
Any suggestions or advice
Thanks Zed... You are an ace! I have the site now here: http://www.jacqueline-edwards.com/ Still waiting on the copy, but perhaps some people could take a look and give me some thoughts ref the design aspects.
-
Any suggestions or advice
anyone?
-
Any suggestions or advice
Any thoughts would be greatly appreciated :-)
-
Waterwisely
I really like it, speed wise it loaded quickly first time for me and the vector works brilliantly. I do agree with Fran ref the banner text.
-
Any suggestions or advice
Cool zed, thanks for the heads up :tv (2): Can someone please check if the ipad glitch is still happening with the menu...
-
Any suggestions or advice
Hi Can you please have a look at my design: http://www.chouselive.co.za/je/root/ and let me know what you think. Any advice or suggestions would be greatly appreciated. Please don't look to closely at the copy, this still needs to be reworked. Thanks Cara
-
What can I do?
Thanks for the great advice. You have given me some excellent pointers to take back to the drawing board. Must say this has been one of the more difficult projects I have tackled as there is so little content to work around and I have had to use given logos etc which makes things more difficult. That said the thoughts and ideas given by you guys is practical and well pointed so feel I have a track to get back to. Many thanks.
-
What can I do?
Thanks andy. There is something about the design that just sits off centre with me although I am not sure what. It may be the metalic background but the guy specialises in steel so trying to get that across. You are correct about the menu. Like I say something just is not working but I can't put my finger on it. Grrrrr
-
What can I do?
Hi guys Please can you have a look at this page that I have been working on and give me your thoughts and Ideas? Link Thanks