Hello!
Using the WordPress platform, i want to create a list of links to other posts within the current category that have a specific tag.
The code below lists all the posts in the current category, so should be able to be adapted to my needs – but i am no PHP expert!
$IDOutsideLoop = $post->ID;
while( have_posts() ) {
the_post();
foreach( ( get_the_category() ) as $category )
$my_query = new WP_Query('category_name=' . $category->category_nicename . '&orderby=date&order=desc&showposts=100');
if( $my_query ) {
while ( $my_query->have_posts() ) {
$my_query->the_post(); ?>
ID ) ? ' class="current-page"' : ''; ?>>
" title="">
}
}
}
?>
Thanks for your help!