Jump to content

wblake37

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

wblake37's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Im still new to php and was looking for some help with this code, it displays random posts with images, what i want is related posts by "tags" or "categories" Its for wordpress. original code: <?php $recent = new WP_Query("cat=<? echo $tg_video_post; ?>&showposts=5&orderby=rand"); while($recent->have_posts()) : $recent->the_post();?> <div class="singleright"> <div class="singlerightimage"> <a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><img src="<?php $values = get_post_custom_values("thumb"); echo $values[0]; ?>" width="90" height="54" alt="<?php the_title_attribute(); ?>" /></a> </div> <div class="singlerighti"> <div class="singlerightinfo"> <a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><?php $tit = the_title('','',FALSE); echo substr($tit, 0, 50); if (strlen($tit) > 50) echo " ..."; ?></a> </div> <div class="postviews"> <?php the_time('F jS, Y') ?> </div> <div class="postviews"> <?php if(function_exists('the_views')) { the_views(); } ?> </div> </div> </div> <?php endwhile; ?> Any help is greatly appreciated
  2. Hi there, and thanks for clicking my thread I have a problem I cant work out what the best way to resolve it because of my limited knowledge with php etc. I basically want to mass edit all wordpress posts on my blog (6,801) They are all youtube videos so they look kind of look like this: I want to pull that youtube url then replace it all with this code Would this be possible? I have basic php/html knowledge but from what i understand i need. Some sort of script to read the url inside the <object> tag then replace it all with the new jwplayer code (looks so much better) Thanks for reading, any thought towards this is much appreciated.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.