use a page to render 1 post and include comments FOR THE POST
untested – try and remove the wp_reset_query(); from content-charts.php; add wp_reset_postdata(); after the endwhile; into your page template.
untested – try and remove the wp_reset_query(); from content-charts.php; add wp_reset_postdata(); after the endwhile; into your page template.
cat requires an ID, if you’re using the slug, set category_name instead. see WP_Query Category Parameters.
I don’t know of a way to do that short of creating your own comment tracking system. Probably the easiest way to use WordPress’s functionality would be to make a “projects” custom post type and use custom fields to store product information like the id etc. This would allow commenting on each product and you … Read more
as you seem to be using a page template, you can edit this even more and directly integrate the essential header and footer code into that template; have a look at this example I recently made up: http://pastebin.com/ZiteZrUX <?php /** * Template Name: Blank Page Template * * @package WordPress * @subpackage Twenty_Eleven */ ?> … Read more
As I suspected, the issue is where/how you’re outputting your custom stylesheet. First, move this to functions.php: function mypage_head() { echo ‘<link rel=”stylesheet” type=”text/css” href=”‘.get_bloginfo(‘template_directory’).’/OldSkool-src/style.css”>’.”\n”; } add_action(‘wp_head’, ‘mypage_head’); Second, change the action into which you’re hooking your callback. You’re using wp_head. All other stylesheets will be using wp_print_styles. The wp_print_styles action fires inside of the … Read more
This is an attempt to fix your sidebar code : <div id=”rightcolumn-wrapper”> <div class=”rightcolumn-inner”> <?php /* Widgetized sidebar */ if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(‘sidebar’) ) : ?> <?php /* If a title has been provided, we’ll use that. */ $NewsTitle=get_option(‘NewsTitle’); if ($NewsTitle) { echo ‘ <h3 class=”news”>’; echo $NewsTitle; echo ‘</h3>’; // Otherwise we’ll use … Read more
If you’re trying to create a output template, then yes essentially just replace the word cat or category everywhere in that code with the word tag. Something is still missing from this question though because template_portfolio.php isn’t a standard template name and it’s not clear how it’s being called by your custom theme.
I would suggest a different approach. The option for manually adding post excerpt should go in a theme option as opposed to a custom field. Also you should use this hook for modifying the excerpt’s more text http://codex.wordpress.org/Plugin_API/Filter_Reference/excerpt_more If the user is supposed to enter custom excerpt on a per-post basis, they can do it … Read more
In your page template line 42 you will see <?php if ( is_archive() || is_search() ) : //display excerpts for archives and search. ?> <?php the_excerpt(); ?> <?php else : ?> <?php the_content(‘Read More’); ?> <?php endif; ?> This means that there won’t be a heading on archive pages and the_excerpt doesn’t allow html like … Read more
$index = ‘A’; $terms = get_terms(‘manufacturer’); foreach ($terms as $term) { if($index != strtoupper(substr($term->name, 0, 1))) { $index = strtoupper(substr($term->name, 0, 1)); echo ‘<h1>’. $index . ‘</h1>’; } ?> <h2><?php echo $term->name; ?></h2> <?php $args = array( ‘post_type’ => ‘cars’, ‘posts_per_page’ => -1, ‘orderby’ => ‘title’, ‘order’ => ‘ASC’, ‘tax_query’ => array( array( ‘taxonomy’ => … Read more