ashobiz
Forum Replies Created
Viewing 7 replies - 1 through 7 (of 7 total)
-
Forum: Fixing WordPress
In reply to: How to get the current page urlthank you very much…
Forum: Fixing WordPress
In reply to: Displaying category in sidebarthanks… i fixed…
Forum: Fixing WordPress
In reply to: Displaying category in sidebarall the sidebar items are coded by me… i am not using any widget… is there anyother way, like getting parent category id from url and listing category using the wordpress list category function ?
Forum: Fixing WordPress
In reply to: Displaying category in sidebarwordpress is not doing this naturally… it is displaying all the sub categories… i don’t want to display all the subcategories, i only want to display subcategories under the current main category…
i don’t want accordion style menu…
Forum: Fixing WordPress
In reply to: Prevent Hotlinking – DirectoryThanks,,, i fixed my problem…
Forum: Fixing WordPress
In reply to: Display different post in every category pagethis worked…
<?php $current = get_query_var('cat'); $args = array( 'numberposts' => 10, 'orderby' => 'rand', 'order' => 'RAND', 'category' => $current ); $rand_posts = get_posts( $args ); foreach( $rand_posts as $post ) : ?> <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li> <?php endforeach; ?>Forum: Fixing WordPress
In reply to: Display different post in every category pagethank you… i tried this…
<?php $current = get_query_var('cat'); $myposts = get_posts('numberposts=10&orderby=name&cat=4&order=RAND'); foreach( $myposts as $post ) : setup_postdata($post); ?> <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?> v <?php the_field('version'); ?></a></li> <?php endforeach; ?>but it is not working…
Viewing 7 replies - 1 through 7 (of 7 total)