Yeah, you can usually find for free the older ones, that are bought at least 300 times.Wow, some slick ones in there, thanks! Now I am on a mission to try get the one I want for free.
<?php $args = array( 'numberposts' => 6, 'orderby' => 'rand' );
$rand_posts = get_posts( $args );
foreach( $rand_posts as $post ) : ?>
Hey OriginalEXE, thanks for the great thread! I have a question for you regarding the related videos section of my tube site. Atm, the videos it pulls are, by the looks of things, totally random. However I want to change that so that the related videos displayed are from the same category.
Here is the code that pulls the random vids:
PHP:<?php $args = array( 'numberposts' => 6, 'orderby' => 'rand' ); $rand_posts = get_posts( $args ); foreach( $rand_posts as $post ) : ?>
Any suggestions on how to modify it? Thanks a lot man - much appreciated!
<?php $args = array( 'numberposts' => 6, 'orderby' => 'rand', 'category' => ID OF THE CATEGORY );
$rand_posts = get_posts( $args );
foreach( $rand_posts as $post ) : ?>
$category = get_the_category();
$category = (int) $category[0]->cat_ID;
$args = array( 'numberposts' => 6, 'orderby' => 'rand', 'category' => $category);
$rand_posts = get_posts( $args );
foreach( $rand_posts as $post ) : ?>
Yeah, forgot to write the code for that part, was in rush.Thanks a lot - got it to work as I wanted with:
PHP:$category = get_the_category(); $category = (int) $category[0]->cat_ID; $args = array( 'numberposts' => 6, 'orderby' => 'rand', 'category' => $category); $rand_posts = get_posts( $args ); foreach( $rand_posts as $post ) : ?>
![]()
Am I being really dense here? I bought a tld but wordpress is making me use domain/wordpress which I'd rather not. Any tips on how to get links clicking direct to the tld?
thanks!
WordPress is not 'making you' anything. Go to the Admin Dashboard - Settings - General and change the Site Address to http://www.yourdomain.tldAm I being really dense here? I bought a tld but wordpress is making me use domain/wordpress which I'd rather not. Any tips on how to get links clicking direct to the tld?
thanks!
Hey mate. What is your opinion to adding a Gplus1 button to a wp site? Is there a good plugin you can recommend?![]()
Just send me details on private, where you want to put button, and I'll add it for you.OK, my first question of the day! I can't add a plus one button either by inserting code or using plugins because my theme has no sidebar. Is there a way around this as I think a GPlus button is an essential thing to have now days. Thank you in advance,
James![]()