kz
Forum Replies Created
-
Forum: Themes and Templates
In reply to: 5 Latest Posts??query_posts('showposts=5'); while(have_posts()) : the_post(); $images = get_children(array( 'post_parent' => get_the_id(), 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'ID', 'order' => 'ASC', 'numberposts' => 1 )); foreach($images as $id => $image){ echo wp_get_attachment_image($id); break; } echo '<a href="' . get_permalink() . '">' . get_the_title() . '</a>'; endwhile; wp_reset_query();Forum: Themes and Templates
In reply to: Changing logo in admin panelfunctions.php:
function my_head() { echo ' <style type="text/css"> #header-logo{ background:url(images/my-logo.png) left center no-repeat; width:100px; height:32px; } </style>'; } add_action('admin_head', 'my_head', 11);Forum: Themes and Templates
In reply to: Changing the dotted line in the news title to a solid or nonestyle.css:
.hentry .title a, .hentry .title span { border-bottom:3px dotted #FF9933 !important; // solid /* border-bottom:3px double #FF9933 !important; // double */ /* border-bottom:none !important; // no line */ }Forum: Themes and Templates
In reply to: Excerpt Height IssuePls show your URL or PHP code.
Forum: Themes and Templates
In reply to: too much space betwen post title and post textYour DOM elements have vartical margin and padding.
Change this:
h2.pagetitle { margin:0 0 5px; padding:8px 8px 8px 15px; } #content .postcontent { padding:15px 15px 0; }To this:
h2.pagetitle { margin:0; padding:8px 8px 0 15px; } #content .postcontent { padding:0 15px; }Then, a large space will disappear.
Forum: Themes and Templates
In reply to: Edit the Widget Title scriptfunctions.php:
function my_widget_title($title){ return '<h3>' . $title . '</h3>'; } add_filter('widget_title', 'my_widget_title');Forum: Themes and Templates
In reply to: Custom Post Summary & Read More!the_content('Read More');and write quick tag ‘<!–more–>’ in your post.
See Customizing the Read MoreForum: Themes and Templates
In reply to: Archives Navigation Link Not Working in Depo Masthead ThemeYou need not include ‘index.php’ in your permalink.
Now your permalinks are:
http://catalytica.biz/360salon/index.php/about-360salon/ — worked.
http://catalytica.biz/360salon/index.php/conversations/ — worked.
http://catalytica.biz/360salon/2010/ — didnt work.
I think you set ‘/index.php/%postname%/’ now.
But why only yearly archive link doesnt include ‘index.php’ ?You must set ‘%postname%’ to [common options|custom structure], and save option.
Then, your permalinks work fine with:
http://catalytica.biz/360salon/about-360salon/
http://catalytica.biz/360salon/2010/Pls show your .php code that output the navigation.
Forum: Themes and Templates
In reply to: Increase Column Width in Elegant Grunge ThemeFor example, below rules worked fine.
#content{width:960px !important;} #body{width:650px !important;}BUT ‘body.jpg’, the background image of #content-container is still narrow. So you had better replace it with the wider background image or hide background.
Forum: Themes and Templates
In reply to: Previous page code?You mean breadcrumb ?
See Breadcrumb NavXTForum: Themes and Templates
In reply to: Blog TAGs in HTML<?php query_posts('tag=page'); if(have_posts()) : while(have_posts()) : the_post(); ?> <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> <?php endwhile; else : ?> <p>No posts.</p> <?php endif; wp_reset_query(); ?>Forum: Themes and Templates
In reply to: Archives Navigation Link Not Working in Depo Masthead ThemeForum: Fixing WordPress
In reply to: How do I kill the icon on the Twitter feed?Add below rule into your style.css.
.twtr-hd, .twtr-ft{display:none;}Forum: Themes and Templates
In reply to: Is post date hard-coded? Doesn’t respond to config changesthe_date(/* no args */)use date format option.
the_date(get_option('date_format'))outputs same result.the_time(/* no args */)use time format option.
the_time(get_option('time_format'))outputs same result.If you specified format directly like
the_date('F n, Y')orthe_time('F n, Y'), general settings has no effect.Below code will work fine for you.
<?php query_posts($query_string . '&cat=1'); // Services if ( have_posts() ) : while ( have_posts() ) : the_post(); /* do stuff */ endwhile; endif; wp_reset_query(); query_posts($query_string . '&cat=2'); // Publications if ( have_posts() ) : while ( have_posts() ) : the_post(); /* do stuff */ endwhile; endif; wp_reset_query(); ?>For example,
1 as category ID for “Services” and 2 as category ID for “Publications”.