chinmoy29
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Query Posts and Pagnation<?php $paged = get_query_var('paged') ? get_query_var('paged') : 1; query_posts("cat=$category&showposts=3&post_per_page=3&paged=".$paged); ?>
Try this once.
Forum: Fixing WordPress
In reply to: Featured Post Slideshow Porblemcan you provide a site link?
Forum: Fixing WordPress
In reply to: 1. Post content not appearing 2.Can't type text into any form fieldswhere is the link? give the pastebin link
Forum: Fixing WordPress
In reply to: Get current post slug and display inside query_postsreplace $post_slug = $post->post_name; with
$post_slug = str_replace("-", "+",$post->post_name);
Forum: Fixing WordPress
In reply to: 1. Post content not appearing 2.Can't type text into any form fieldscan you put the single.php and loop.php file in pastebin?
Forum: Fixing WordPress
In reply to: term_description in a page templatetry this kind of things
$property_cat_list = get_the_term_list( $post->ID, 'speaker', 'Property Category(s): ', ', ', '' ); if ( '' != $property_cat_list ) { $property_cat_text = "$property_cat_list \n"; echo $property_cat_text ; }
Note: “speaker” is taxonomy
or you can use
$terms = get_the_terms($post->ID,'speaker'); foreach ($terms as $term) { echo "<p>$term->name $term->description</p>"; }
https://chinmoy29.wordpress.com/2010/07/02/creating-a-custom-taxonomy/
Forum: Fixing WordPress
In reply to: Jquery Load Problemhave jquery-1.4.2.min.js file in your theme’s js folder?
Forum: Fixing WordPress
In reply to: Jquery Load Problemtry this once
<?php /* We add some JavaScript to pages with the comment form * to support sites with threaded comments (when in use). */ if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); /* Always have wp_head() just before the closing </head> * tag of your theme, or you will break many plugins, which * generally use this hook to add elements to <head> such * as styles, scripts, and meta tags. */ wp_enqueue_script('jquery'); wp_head(); ?>
Forum: Fixing WordPress
In reply to: 1. Post content not appearing 2.Can't type text into any form fieldsfile name should be single.php instead of singlepost.php
Forum: Fixing WordPress
In reply to: shorten page lengththere have some HTML formatting issue. check via XHTML validator.
Forum: Fixing WordPress
In reply to: How to add custom header in my blog?edit header.php file
Forum: Fixing WordPress
In reply to: Get all posts from a taxonomymay be it will help
query_posts('taxonomy'=> 'country');
Forum: Fixing WordPress
In reply to: Get all posts from a taxonomytry this
query_posts( array('country') );
or thisquery_posts( array('country' => array("India", "US", "UK")) );
Forum: Fixing WordPress
In reply to: Get all posts from a taxonomysee this sample
$args = array( 'tax_query' => 'relation' => 'AND', array( 'taxonomy' => 'movie_janner', 'field' => 'slug', 'terms' => array( 'action', 'commedy' ), ), array( 'taxonomy' => 'actor', 'field' => 'id', 'terms' => array( 103, 115, 206 ), 'operator' => 'NOT IN', ) ) query_posts( $args );
Forum: Fixing WordPress
In reply to: How to remove long titles from previous posts.use php substr function. check php doc