Tom Morton
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to excute categoryNo problem, any more help just let us know!
Forum: Fixing WordPress
In reply to: How to excute categoryDon’t use query posts, you need to use WP_query:
<div id="first-column"> <?php $columnone = new WP_Query(); $columnone->query('cat=1&showposts=1');?> <?php while ($columnone->have_posts()) : $columnone->the_post(); ?> <p>Enter in your title, content, whatever you want in here for the first column</p> <?php endwhile; wp_reset_query(); ?> </div> <div id="second-column"> <?php $columntwo = new WP_Query(); $columntwo->query('cat=2&showposts=1'); //your attributes go in there?> <?php while ($columntwo->have_posts()) : $columntwo->the_post(); ?> <p>Enter in your title, content, whatever you want in here for the second column</p> <?php endwhile; wp_reset_query(); ?> </div>Forum: Fixing WordPress
In reply to: php – Changing Meta Tags@glh49 Are you sure that the plugin All in One SEO Pack is still active? Dumb question I know, but I have to ask.
If it is, then edit a post and look in the upper right hand corner for the “screen options” and see if the All in one seo box is checked.
Forum: Fixing WordPress
In reply to: Article not listed in Category pageJoerpnet,
I’m seeing the text widget (text-4) when I’m both logged in and not logged in, so I’m not sure what issue you’re having.
I have a feeling its something going funny with your theme. If you’d like, head to my site(link is my name, over there <–) and fire me off an email so I can get credentials from you to login and take a look around.
Forum: Fixing WordPress
In reply to: how to add text to every postYes, there’s no reason you can’t do that. You’re good to go!
Forum: Fixing WordPress
In reply to: Comment Date showing same as post dateSo are you looking to make the authors comments look different?
http://wordpress.org/extend/plugins/highlight-author-comments/
Forum: Fixing WordPress
In reply to: Comment Date showing same as post dateSorry I’m not understanding what you mean. You mean have the avatar called by the user that’s logged in?
Forum: Fixing WordPress
In reply to: Comment Date showing same as post dateThe author’s thumbnail is being set by groupon and her email address. So if her email account on record with wordpress is “Jane.Doe@gmail.com”, she would need to visit http://www.gravatar.com and upload that image, using her email address as the account.
Thats the same system that this forum uses, and why you can see my picture over there <—
Does that help?
Forum: Fixing WordPress
In reply to: Comment Date showing same as post dateLine 28 reads like this:
<div class="pic"><?php echo get_avatar( $comment, 80, $default = $urlHome . '/images/default_avatar_visitor.gif' ); ?></div>If no notice, the “Default” is set to an image in your theme. Is that what you are referring to?
Forum: Fixing WordPress
In reply to: Comment Date showing same as post dateThats right. Your problem is at line 32:
<div class="comm-date"><small><em> <?php the_time('m.d.y') ?> </em></small></div>Replace that with:
<div class="comm-date"><small><em> <?php comment_date(); ?> </em></small></div>Forum: Fixing WordPress
In reply to: how to filter images by its attributes?$filesize = filesize( get_attached_file( $attachment->ID ) ); if( $filesize == WHATYOUWANTTHEFILESIZETOBE){ $args = array( 'post_type' => 'attachment', 'numberposts' => -1, 'post_status' => null, 'post_parent' => $main_post_id ); $attachments = get_posts($args); foreach ($attachments as $attachment) { the_attachment_link($attachment->ID, false); } else { echo 'No images for you!'; }Not tested, but it gives you the idea.
Forum: Fixing WordPress
In reply to: WordPress is Stripping HTML!You could use something like this: Embed Iframe which uses a shortcode to replace the embed code.
More info on how that works here: http://wpgarage.com/tips/stop-wordpress-stripping-iframe-html/
Hope this helps!
Forum: Fixing WordPress
In reply to: how to filter images by its attributes?$args = array( 'post_type' => 'attachment', 'numberposts' => -1, 'post_status' => null, 'post_parent' => $main_post_id ); $attachments = get_posts($args); foreach ($attachments as $attachment) { the_attachment_link($attachment->ID, false); }That gets the image. Then check the size with an if statement asking:
filesize( get_attached_file( $attachment->ID ) );Forum: Fixing WordPress
In reply to: wordpress not uploading to website!?Is your browser caching? Either that or you uploaded it to a directory (example.com/wordpress).
Try pressing CTRL-SHIFT-R and see what happens.
Forum: Fixing WordPress
In reply to: WordPress is Stripping HTML!It depends on what the HTML is. Sometimes wordpress will strip out dangerous code (iframe) or bad code, for example:
<div> <h3> Hello World, this is bad code! </div> </h3>If you want specifics you’ll have to copy/paste the code you’re trying to insert.