Kevin Kwok
Forum Replies Created
-
In my experience any flash parameter code always over powers anything. you can even put z-index:9999999999999999999999999999999999999; haha
Forum: Fixing WordPress
In reply to: show full post from categoryShane G’s solution worked exactly right for me.
I went to my Loop.php file and found this:
<?php the_excerpt(); ?>
and replaced it with:
<?php the_content(); ?>
Forum: Fixing WordPress
In reply to: Unable to create directoryThis happened to me also, when i went to wp-content, the upload folder was not even there. I created one. then tried to upload a image via my blog again and still same error so i change chmod settings on uploada folder to 777 and it fixed it.
Forum: Fixing WordPress
In reply to: Show author’s first name and first letter/initial of last name.ALCHYMYTH
youre a genius it worked. I used your alternate method it was just missing a space and the period after the last initial so I changed it a little to this:<?php echo the_author_meta('first_name'); ?> <?php echo (' '); ?> <?php echo substr(get_the_author_meta('last_name'),0,1).'.'; ?>
Thanks you. Thank you. Thank you.
Forum: Fixing WordPress
In reply to: Show author’s first name and first letter/initial of last name.I’m so sure I’ve seen this before, I think if I am unable to figure it out maybe I can edit each profile and add a nickname to be “Barack O.” and just tell wordpress to display nickname, but I hope it does not come to that.
Forum: Fixing WordPress
In reply to: Show posts organized by AuthorMichael! This was amazing, I just have to tweak it a little but thank you! Will let you know of the final results.
Once again you have saved the day.
Forum: Fixing WordPress
In reply to: Show author’s first name and first letter/initial of last name.hm tried that it seemed to to just display the the name like this
ObamaBarack
thanks though.
This is a snippet of my code :
foreach($posts as $post){ setup_postdata($post); childtheme_post_header(); 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).'"/>'; else echo '<img class="full-image" src="'.bloginfo('url').'" />'; echo the_author_meta('first_name'); echo (' '); echo the_author_meta('last_name'); }
but my latest fix is:
if(strlen($the_author_lastname->lastint) >1){ echo substr(last_lastint(),0,1); } else{ last_lastint(); }
Forum: Themes and Templates
In reply to: how would i restrict the character limit i na category nameI’m trying to do something similar to this here
Forum: Fixing WordPress
In reply to: Show author’s first name and first letter/initial of last name.I tried this :
echo substr($the_author_lastname->last_name, 0, 1);
and
echo substr(the_author_lastname(),0,1);
didnt do anything =(
Forum: Fixing WordPress
In reply to: Is it possible to restrict the character length of a post title?what about last_name short code for authors? so its like Brack O.
Forum: Fixing WordPress
In reply to: Code for Archives widget?ok i found out this code:
<ul> <?php wp_get_archives('type=monthly'); ?> </ul>
but it doesnt show the number of posts each month has, any ideas?
Forum: Fixing WordPress
In reply to: Older and Newer posts links not workingive been told it requires custom coding…
Forum: Fixing WordPress
In reply to: Older and Newer posts links not workingwheres michael when i need him! =(
Forum: Fixing WordPress
In reply to: Older and Newer posts links not workingif(isset($_GET['sortby'])) $sortby = $_GET['sortby']; else $sortby = 'DESC'; $cat_args = array( 'orderby' => 'ID', 'order' => $sortby, // New Code 'number' => 12 ); if(is_numeric($_GET['paged'])) add_filter('post_limits', 'test_limits'); function test_limits($limits) { $var = (12 * $_GET['paged']); return "{$var}, 12"; }
This is the section of code from my index.php
that basically tells wordpress to display the 12 newest categories in descending order. notice the variable “paged” I think I have to do something here…. to make it so “older posts” link displays the next set of 12 categories, but I’m unsure how right now.
Forum: Fixing WordPress
In reply to: Older and Newer posts links not workingI think I got the phrasing down of what I am asking.
Is there a way to paginate categories? So that each time I click next page it shows the next 12 categories.