peiledoir
Forum Replies Created
Viewing 6 replies - 1 through 6 (of 6 total)
-
Forum: Plugins
In reply to: [Easy Image Gallery] Someway to just echo the img tags?<?php $gallery_images = easy_image_gallery_get_image_ids(); foreach($gallery_images as $image_id) { // looping on user-selected attachment IDs $image_src = wp_get_attachment_url( $image_id ); // returns an array $image_thumb_src = wp_get_attachment_url( $image_id, 'thumbnail' ); // returns an array echo '<div class="col-xs-4 col-md-2"> <a href="'.$image_src.'" data-gallery="global-gallery" data-parent="" data-toggle="lightbox" class="thumbnail"> <img src="' . $image_thumb_src . '" class="img-responsive" alt=""> </a> </div>'; } ?>
Thanks for the plugin, this is what I’m using, works like a charm!
Forum: Plugins
In reply to: After x days of membership do function? Any ideasThanks Andrew.. got it withthe help of this too
I basically want to allow the users access to 20 more posts every month..
//$posts_total = ($months + 1) * 20; $date2 = date('l jS F Y'); // get all the users who are registered $allusersquery = "SELECT * FROM wp_users"; $usersresults = mysql_query($allusersquery); while($myuser = mysql_fetch_assoc($usersresults)) { $date1 = $myuser['user_registered']; echo "<br>"; $diff = abs(strtotime($date2) - strtotime($date1)); $months = floor(($diff - 0 * 365*60*60*24) / (30*60*60*24)); printf("<br>%d months", $months); $posts_total = ($months + 1) * 20; echo " ".$posts_total." Posts"; }
Forum: Fixing WordPress
In reply to: Sidebar gone after database prefix changeHad to rebuild it manually, thanks for the help!
Forum: Fixing WordPress
In reply to: Sidebar gone after database prefix changeany luck with this insurgenesis or anyone else??
im stuck with this right now tooany help on this one please? its a big issue my client is having
thanks allForum: Hacks
In reply to: query posts with multiple meta_values?Found the answer!!
https://www.mattvarone.com/wordpress/query-multiple-meta-values/
Viewing 6 replies - 1 through 6 (of 6 total)