jaysonbrown
Forum Replies Created
Viewing 7 replies - 1 through 7 (of 7 total)
-
Forum: Plugins
In reply to: [Plugin WP-dTree] – exclude categories in PHPbump
Forum: Requests and Feedback
In reply to: [Plugin: d13slideshow] parent category for post selectionFYI, you can use masterbassie code in category.php, and have a slider preview dynamically for every category!
<?php function getCurrentCategoryId() { if (is_category()) { global $wp_query; $cat_obj = $wp_query->get_queried_object(); return $cat_obj->term_id; } return -1; } $args = array( 'numberposts' => 3, 'category' => getCurrentCategoryId(), 'orderby' => rand ); $lastposts = get_posts($args); foreach($lastposts as $post) : setup_postdata($post); ?> <?php $ID_Array[]=$post->ID; ?> <?php endforeach; ?> <?php d13slideshow(array($ID_Array[0], $ID_Array[1], $ID_Array[2], $ID_Array[3], $ID_Array[4], $ID_Array[5], $ID_Array[6], $ID_Array[7], $ID_Array[8], $ID_Array[9])); ?>Got so fed up with trying to figure out how to code this simple PHP function, I contacted justanswerDOTcom and they solved the issue within 25 minutes for $22 USD. Well, that works for me!
<?php function getCurrentCategoryId() { if (is_category()) { global $wp_query; $cat_obj = $wp_query->get_queried_object(); return $cat_obj->term_id; } return -1; } $args = array( 'numberposts' => 3, 'category' => getCurrentCategoryId(), 'orderby' => rand ); $lastposts = get_posts($args); foreach($lastposts as $post) : setup_postdata($post); ?> <?php $ID_Array[]=$post->ID; ?> <?php endforeach; ?> <?php d13slideshow(array($ID_Array[0], $ID_Array[1], $ID_Array[2], $ID_Array[3], $ID_Array[4], $ID_Array[5], $ID_Array[6], $ID_Array[7], $ID_Array[8], $ID_Array[9])); ?>… lol
..
.
Forum: Fixing WordPress
In reply to: Display Posts Using Lightbox EffectBUMP! I am trying the same thing as well; I am using a version of multi box. The script works perfectly when placed within the loop, however the content hidden in the div is always from the first article.
I have also tried creating multiple “loops” 7 in total for seven days in the week, and received the same results.
I am a designer not a programmer so this is driving me nuts, however I love the challenge.
Viewing 7 replies - 1 through 7 (of 7 total)