redconservatory
Forum Replies Created
-
Wait, it appears that switching it from an object to an array helped:
function column_default($item, $column_name){
$item = (array)$item;
}Is that considered a ‘hack’ way of doing this, or is this all right?
Forum: Fixing WordPress
In reply to: Problems with VSlider, slider not changingHi Jordas,
It’s been awhile but I remember that I got it working.
Basically when I unzipped the file it created a folder called vslider2.0 and I had to rename it to vslider.
The wordpress/php code references vslider, so anything named, say, vslider2 will not work and will cause images to disappear.
I suspect if it’s not this problem for you it’s something similar. Using firebug to locate the link the code was actually pointing to helped me A LOT.
Best of luck!
Forum: Fixing WordPress
In reply to: query_posts pagination not workingOkay, thanks, all of this works now.
I just needed to add “previous” and “next” links after the loop (duh):<?php $args = array( 'cat' => '5', 'post_type' => 'post', 'posts_per_page' => 6, 'paged' => ( get_query_var('paged') ? get_query_var('paged') : 1), ); query_posts($args); while (have_posts()) : the_post(); /* Do whatever you want to do for every page... */ ?> <div class="project_item"> <div class="dotted"> <hr /> </div> <div class="project_thumb"><a href="<?php echo get_permalink(); ?>"><img src="<?php getCustomField('news_thumbnail'); ?>" /></a></div> <div class="project_entry"><h4><a href="<?php echo get_permalink(); ?>"><?php getCustomField('news_title'); ?></a></h4> <?php getCustomField('news_excerpt'); ?> <a href="<?php echo get_permalink(); ?>" class="readmore">Read more..</a> </div> </div> <?php endwhile; ?><div class="navigation"> <div class="alignleft"><?php previous_posts_link('« Previous') ?></div> <div class="alignright"><?php next_posts_link('More »') ?></div> </div> <?php wp_reset_query(); // Restore global post data ?>
Forum: Fixing WordPress
In reply to: query_posts pagination not workingHm I did try this but no luck either. Do you might – I mean, if you could – posting the code that works from your site? Maybe I’m missing something…
Thanks so much for your help on this!
Forum: Fixing WordPress
In reply to: query_posts pagination not workingI made that change and that doesn’t seem to help – any ideas?
I thought
'paged' => $page,
was referencing the variable $page from this line below?
$page = (get_query_var('paged')) ? get_query_var('paged') : 1;
Forum: Plugins
In reply to: [Plugin: Grou Random Image Widget] Text file problem with tooltipFor some reason the above was an answer to my other question, I am still having problem with the tooltip however. Can anyone help me?
Forum: Plugins
In reply to: [Plugin: Grou Random Image Widget] Text file problem with tooltipAh answered it myself, file has to be:
ImageName.jpg
ImageName.jpg.txt