kapiljainin
Forum Replies Created
-
Forum: Themes and Templates
In reply to: restrict the number of posts on front pageHi Michael,
I have the same problem.
If I use query_posts function, paging not worked properly. When I click on older entries, it shows 404 page.
Any other way of doing this?
Thanks
Kapil JainForum: Themes and Templates
In reply to: How to style Tag Cloud with CSSHi DrMatthias,
If you are using widget to display Tags, add the following classes in style.css of the theme and change values it as per your need.
#tag_cloud a:link { font-family: georgia; color: red; } #tag_cloud a:hover { font-family: georgia; color: green; } #tag_cloud a:visited { font-family: georgia; color: blue; }
Forum: Themes and Templates
In reply to: help with the categories orderHi amitrozen,
You can do it by retrieving categories using custom query. This article might help you:
https://www.devlounge.net/general/last-updated-categories-wordpress-23-query
Forum: Themes and Templates
In reply to: Unable to change image class using Thumbnails for ExcerptsTry by doing the following steps:
1. Change line #20 of plugin file (thumbnailforexcerpts.php) to default which is:
define("TFE_CLASS","imgtfe"); //the class for the thumbnail images; you can change it or use this class in you CSS file
2. Define imgtfe class in style.css of your wordpress theme.
.imgtfe { border:1px solid #000; padding:1px; float:left; margin:3px 10px 4px 0; display:inline }
Forum: Themes and Templates
In reply to: Zindi – How to edit the “about” blockThis block written in sidebar.php
You have to change it manually in this file.
Forum: Themes and Templates
In reply to: “Lead capture” landing page template for a PPC-SEM campaign?Hi kbellare,
I think you can do it by using cforms plugin.
Read more about this plugin:
https://www.deliciousdays.com/cforms-pluginForum: Themes and Templates
In reply to: one post from a specific categoryJust try by using WP_Query(“showposts=1&cat=3”) to WP_Query(“cat=3&showposts=1”)
I have checked it on my temp blog, it works if we change the order of WP_Query parameters.
Forum: Themes and Templates
In reply to: register Form in ThemeThis plugin might helpful for you:
https://www.ads-software.com/extend/plugins/iredlof-ajax-login-plugin/
Forum: Themes and Templates
In reply to: Different Sidebar in Firefox vs. IEPut it just before <div id=”footer”>
Forum: Themes and Templates
In reply to: Listing Latest Post Titles, Date Posted, and Category?This is some typing mistake:
use the_time() instead of thetime()
Forum: Fixing WordPress
In reply to: Title of page’s root ancesterThanks MichaelH,
I checked mentioned code, it works fine for the sub level pages but returns nothing for top level pages.
Forum: Themes and Templates
In reply to: A little confusedYes your are right. Do the following steps:
1. Create a custom field using plugin or manually (for exmaple: header_pic).
2. Upload an image for header in media library.
3. Copy the path of images and paste into the custom field.
4. Retrieve the url in an variable from custom field in your template page by using <?php $image_url = get_post_meta($post->ID, ‘header_pic’, true); ?>
5. Now you may use it as you want.Forum: Themes and Templates
In reply to: displaying posts from a single category in sidebarI have made changes in the above code, find the same. I think it works for you:
<?php global $post; $categories = get_the_category();foreach ($categories as $category) : ?> <h2>» <?php echo $category->name; ?></h2> <ul class="rightcol"> <?php //Code added for getting all categories in a variable $cat_ids foreach((get_the_category()) as $category) { $cat_ids=$cat_ids . $category->cat_ID . ','; } $cat_ids=substr($cat_ids, 0, -1); //---------- ?> <?php $posts = get_posts('numberposts=20&category='. $cat_ids);foreach($posts as $post) : //replaced $category->term_id with $cat_ids ?> <li><span class="threecolsmall"><?php the_time('j M y') ?></span><br /> <a href='<?php the_permalink() ?>'><?php the_title(); ?></a></li> <?php endforeach; ?> <li><strong><a href="<?php echo get_category_link($category->term_id);?>" title="View all posts filed under <?php echo $category->name; ?>">ARCHIVE FOR '<?php echo $category->name; ?>' CATEGORY »</a></strong></li> <?php endforeach; ?> </ul>
Forum: Themes and Templates
In reply to: A little confusedI think it is the best practice and simplest way of doing that.
By using custom field you can easily manage images from admin panel of wordpress.
Just use this Custom Field Template plugin, it make the task even more simple.
Forum: Themes and Templates
In reply to: MU Theme Login DisplayIf worked fine, request you to please close this issue.