kongkang
Forum Replies Created
-
Tutorial you can follow how to add thumbnail to your category page. https://new2wp.com/?p=642
Add this to your
functions.php
if (function_exists(‘add_theme_support’)) {
add_theme_support(‘post-thumbnails’);
}Then on your template
<?php if ( has_post_thumbnail() ) {
the_post_thumbnail(‘thumbnail’);
} else {
?>
<img src=”<?php bloginfo(‘template_url’); ?>/images/no-thumbnail.gif” width=”150″ height=”150″ alt=”<?php the_title(); ?>” />
<?php } ?>While you add new @ edit post, you will see one widget called Featured Image. Use it to set the featured image
Forum: Fixing WordPress
In reply to: wp_nav_menu and db queriesA normal page generation tends to run between 30 and 80 queries.
Now my theme on main page run
68 queries. 0.786 seconds.
So this is a normal range?Forum: Fixing WordPress
In reply to: Dynamic the_excerptThanks mate! now it worked after you fix the miss-spelled. I’ll email you when site goes live.. Awesome alchymyth.
Thanks all, answered all my questions. You guys wprock.
Forum: Fixing WordPress
In reply to: Dynamic the_excerptHere the code, twenty ten theme
loop.php https://wordpress.pastebin.com/x5ANEzGM
functions.php https://wordpress.pastebin.com/P0ULDRDfit might help if you could describe in more detail with an example what you like to achieve; and post a link to your site.
I want something like this.. in the default loop.php (twenty ten) in search will shown 100 chars, index will be 200 chars, on category 300 chars.. something like that by examples.
So I can implement it to another custom theme if it worked on twenty ten theme.
Forum: Fixing WordPress
In reply to: Dynamic the_excerptThanks alchymyth for the code, but the
the_excerpt_dynamic(100);
still returned to default value. I tried on twenty ten theme.Forum: Fixing WordPress
In reply to: Dynamic the_excerptI want different length for my excerpt. Example on my theme have 3 sections.
Section 1 – I want the excerpt length will be 100 characters.
Section 2 – I want the excerpt length will be 200 characters.
Section 3 – I want the excerpt length will be 300 characters.Forum: Fixing WordPress
In reply to: Dynamic the_excerptFatal error: Call to undefined function rss_feed_100()
Forum: Fixing WordPress
In reply to: Dynamic the_excerptSimple way to make it work I replace
the_excerpt
to be<?php the_content_rss('', FALSE, '', 100); ?> <?php the_content_rss('', FALSE, '', 200); ?> <?php the_content_rss('', FALSE, '', 300); ?>
and it’s worked but the function has been deprecated. hmmm..
Forum: Fixing WordPress
In reply to: Dynamic the_excerpthmmm.. not working. Still return to default value.
Forum: Fixing WordPress
In reply to: No "Add Link" Button on "Add Link" PageDefault should be like this Dashboad Image
So there is no (Add Link)?
Forum: Fixing WordPress
In reply to: Posible to arrange menu on add_theme_page?buzz
Forum: Hacks
In reply to: Upload to different path1. Login to admin
2. Settings -> Media
3. Uploading Files – > Store uploads in this folderForum: Hacks
In reply to: Media Settings – Images Sizes – Crop exact dimensions for medium sizeForum: Themes and Templates
In reply to: How put latest post from each category on homepageThanks Michael for the code. Just another question, how do I implement
'feed '=> 'RSS'
to the code?On the
echo '<p>Category: <a href="' . get_category_link( $category->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $category->name ) . '" ' . '>' . $category->name.'</a> Feed Icon Here</p> ';
I want to have the Feed Icon by each category