Kevin Kwok
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: List authors is listing admin multiple timeshere you go this is what i used on my page
<?php wp_list_authors('show_fullname=1&exclude=admin'); ?>
works like a charm , let me know if you have any problemsForum: Fixing WordPress
In reply to: link to display new to old and old to new categoriessolved myself.
if(!isset($sortby)) { $sortby = 'DESC'; } $cat_args = array( 'orderby' => 'ID', 'order' => $_GET[sortby] // New Code ); $categories = get_categories($cat_args); foreach($categories as $category) { echo '<div>'; echo '<div style="float: right; position:absolute; padding-left:690px; padding-right:10px; font-family:Courier New; font-size:16px; width:180px;"> <a href="' . get_category_link( $category->term_id ) . '" title="' . sprintf( __( "" )) . '" ' . '>' . $category->name. ' '.$category->description.'</a></div>'; $args = array( 'orderby' => 'ID', 'order' => 'DESC', 'showposts' => -1, 'category' => $category->term_id, 'caller_get_posts' => 1 ); $posts = get_posts($args); echo '<div style="float: left; width: 660px;">'; foreach($posts as $post) { setup_postdata($post); childtheme_post_header(); echo "<a href=\"".$post->guid."\" rel=\"bookmark\">"; echo '<div style="float: left; width: 150px; margin-right: 15px;">'; if(get_post_meta($post->ID, 'full-image', $single = true)) echo '<img class="full-image" src="'.get_post_meta($post->ID, 'full-image', $single = true).'" width="150" height="113" /><BR />'; else echo '<img class="full-image" src="'.bloginfo('url').'" width="150" height="113" /><BR />'; echo '<div style="height:50px;"> <div style="float: left; margin-top:6px;">'.get_post_meta($post->ID, 'designed-by', $single = true).'</div> <div style="float: right; margin-top:6px;">'.$post->post_title.'</div> <div style="clear: both;"></div> </div>'; echo '</div>'; echo '</a>'; } echo '</div>'; echo '</div>'; } ?> </div>
any takers?
Forum: Fixing WordPress
In reply to: Add seperator to comments (image or <HR> tag between comments)I ended up using this link to accomplish what I needed
https://vanvi.cn/404.php?404;https://www.jdz.name:80/2009/06/25/wordpress-wp_list_comments
Forum: Fixing WordPress
In reply to: Add seperator to comments (image or <HR> tag between comments)thank you sir!
well like i said this thread has just basically become me documenting my process to make this thing happen. so with the help of my friend here i finally figured it out heres my code. hope this helps someone down the road maybe years from now.
<?php function printr($var) { echo "<pre>"; print_r($var); echo "</pre>"; } ?> <div style="position:absolute;margin-bottom:20px;margin-top:-24px; margin-left:-10px;"> <hr color="#000000" size="0.5px" style="height:0.5px;width:659px;"> </div> <div style="width: 900px;"> <? $cat_args = array( 'orderby' => 'ID', 'order' => 'ASC' ); $categories = get_categories($cat_args); foreach($categories as $category) { echo '<div>'; echo '<div style="float: right;">Category #'.$category->term_id.'</div>'; $args = array( 'orderby' => 'title', 'order' => 'ASC', 'showposts' => -1, 'category' => $category->term_id, 'caller_get_posts' => 1 ); $posts = get_posts($args); echo '<div style="float: left; width: 660px;">'; foreach($posts as $post) { setup_postdata($post); childtheme_post_header(); echo "<a href=\"".$post->guid."\" rel=\"bookmark\">"; echo '<div style="float: left; width: 150px; margin-right: 12px;">'; if(get_post_meta($post->ID, 'full-image', $single = true)) echo '<img class="full-image" src="'.get_post_meta($post->ID, 'full-image', $single = true).'" width="150" height="113" />'; else echo '<img class="full-image" src="'.bloginfo('url').'" width="150" height="113" />'; echo '<div style="height:50px;"> <div style="float: left;">'.get_post_meta($post->ID, 'designed-by', $single = true).'</div> <div style="float: right;">'.$post->post_title.'</div> <div style="clear: both;"></div> </div>'; echo '</div>'; echo '</a>'; } echo '</div>'; echo '<div style="clear: both;"></div>'; echo '</div>'; echo '<div style="position:absolute; margin-left:-10px;height: 1px; width: 660px; background-color: #000000; margin-top:-5px; margin-bottom: 15px;"></div>'; } ?> </div>
Forum: Fixing WordPress
In reply to: Post title description on one linesolved my own question
<?php foreach((get_the_category()) as $category) { echo $category->cat_name . ' '$category->description .' '; } ?>
hehe….
Forum: Your WordPress
In reply to: My New Blognice blug, bandwidth depends on all the file sizes of all youre files. godaddys lowest hosting plan is about $50 a year for 300gb bandwidth. look for online coupons.
dreamhost which is like $120 for a year but you basically get unlimited bw and file space.
Forum: Your WordPress
In reply to: All feedback welcomed!nice design! only thing i would say is the poll is a little distracting for me. i feel it takes way from seeing your nicely designed site.
Forum: Your WordPress
In reply to: My New WP Site, any feedback is appreciatedLucky you found thematic theme, which lends a huge hand to you for your minimalist style. i think it would be nice if the post titles were not completely black, maybe a dark gray.
Forum: Your WordPress
In reply to: Review mine: 68design(www.68ds.com) and exchange related link..nice work, love the topics. would love if the rss feed picture on top went over the navigation instead of behind it
Forum: Your WordPress
In reply to: WordPress based Dog Adoption website…very nice
Forum: Your WordPress
In reply to: My New Blognice blug, bandwidth depends on all the file sizes of all youre files. godaddys lowest hosting plan is about $50 a year for 300gb bandwidth. look for online coupons.
dreamhost which is like $120 for a year but you basically get unlimited bw and file space.
Forum: Everything else WordPress
In reply to: Godaddy and WordPress..check function.php and your css files.
Forum: Everything else WordPress
In reply to: Godaddy and WordPress..adding to what clayton said, you would probably have to find this in your function.php file, you can get more help if you post your link.