Mark Shirley
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Display multiple post excerpts on a pageI use Display-Posts-Shortcode plugin and wrap the excert in html
Thanks Justin – that work fine – if i wanted to add another taxonomy of “actess” and another tax_term of “jane-smith” is it possible.
[display-posts post_type="movies" taxonomy="actors" tax_term="peter-smith" image_size="thumbnail" include_excerpt="true"]
Forum: Fixing WordPress
In reply to: adding custom post types to a pageThe code above is all i did on to a page I also tried some code from the wp-codex below – not sure if it’s possible to add a CPT to a page as every tutorial I’ve tried just brings up any stuff that had been inputted in the post editor. All the custom template stuff ie custom field stuff never shows.
<?php /** * Template Name: Page of Books * * Selectable from a dropdown menu on the edit page screen. */ ?> <?php get_header(); ?> <div id="container"> <div id="content"> <?php $type = 'book'; $args=array( 'post_type' => $type, 'post_status' => 'publish', 'paged' => $paged, 'posts_per_page' => 2, 'ignore_sticky_posts'=> 1 ); $temp = $wp_query; // assign ordinal query to temp variable for later use $wp_query = null; $wp_query = new WP_Query($args); ?> <?php get_template_part( 'loop', 'index' );?> </div><!-- #content --> </div><!-- #container --> <?php get_sidebar(); ?> <?php get_footer(); ?>
Look at the bit of code at the end (go to product thats the bit to change, put this code in your functions.php
/*************************************** * Change CONTINUE READING to READ MORE **************************************/ /********* CUSTOM EXCERPTS ************/ /* Removes the get_the_exerpt filter */ function iggy_remove_excerpt_filter() { remove_filter( 'get_the_excerpt', 'twentyeleven_custom_excerpt_more' ); } add_action( 'after_setup_theme', 'iggy_remove_excerpt_filter' ); /* Adds a pretty "READ MORE" link to custom post excerpts */ function iggy_custom_excerpt_more( $output ) { if ( has_excerpt() && ! is_attachment() ) { $output .= iggy_continue_reading_link(); } return $output; } add_filter( 'get_the_excerpt', 'iggy_custom_excerpt_more' ); /*********** AUTO EXCERPTS **********/ /* Removes the excerpt_more filter */ function iggy_remove_auto_excerpt_filter() { remove_filter( 'excerpt_more', 'twentyeleven_auto_excerpt_more' ); } add_action( 'after_setup_theme', 'iggy_remove_auto_excerpt_filter' ); /* Adds a pretty "READ MORE" link to custom post excerpts. */ function iggy_auto_excerpt_more( $more ) { return '… ' . iggy_continue_reading_link(); } add_filter( 'excerpt_more', 'iggy_auto_excerpt_more' ); /* Returns a "READ MORE" link */ function iggy_continue_reading_link() { return ' <a href="'. esc_url( get_permalink() ) . '">' . __( 'go to product <span class="meta-nav">→</span>', 'twentyeleven' ) . '</a>'; }
Forum: Plugins
In reply to: [Custom Post Type UI] Custom Post Type UI's Manager pages are blank!Same here every things gone on all my sites with Custom Post Type UI plugin on in the admin
Forum: Plugins
In reply to: Membership pluginI have ended up using SimpleModal Login for the front page fly-out login, role-scoper for controlling the users rolls and peters login redirect to send the users to the right area.
Forum: Fixing WordPress
In reply to: individually style menu hoverThanks works a treat been trying for hour to figure this out
that it default
Forum: Plugins
In reply to: Membership pluginCheers I tried using theme my login but gave up It kept screwing my site up maybe because im working on a test site on mamp. Cant find any cohesive instruction on it. – Thanks again for the reply
Forum: Fixing WordPress
In reply to: individually style menu hoverits the 5-steps menu item I need to hover to black i’ve changed my class name to .target-menu – cheers Mark
.target-menu
Forum: Plugins
In reply to: [Background Slideshow] [Plugin: Background Slideshow] not workingDoesn’t work for me either totally confusing the instruction dont explain how to add more images to the slide show a video somewhere could have helpred
Forum: Themes and Templates
In reply to: How to add extra widgets to Responsive ThemeSorry just finding it a bit frustrating trying to find the answer to adding further widgets to the home page
its mentioned here but no link to instructions
I wanted to add another row of three.
https://themeid.com/forum/topic/1036/page-with-widgets-only/Forum: Themes and Templates
In reply to: How to add extra widgets to Responsive ThemeSorry Emil but the way your forum is layed out for someone coming in cold its as clear as mud really needs to be organized better its as clear as mud
Forum: Themes and Templates
In reply to: CSS target custom post type or templateSorted – The code Id I needed is:
.single-movies
Forum: Plugins
In reply to: Cart66 Lite sales tax issueSame problem as well cant set 20% vat