retrieve post slug by post_tags taxonomy

i am not sure but try this: query_posts(‘category_name=”. $category[0]->cat_name); if (have_posts()) : while (have_posts()) : the_post(); $posttags = get_the_tags(); if ($posttags) { foreach($posttags as $tag) { $all_tags_arr[] = array($tag->name,wp_basename(get_permalink())); } } endwhile; endif; foreach ($all_tags_arr as $cat_by_tag) { $output_promotion .= “<li><a href=”‘ . get_bloginfo(‘url’). “https://wordpress.stackexchange.com/” . $cat_by_tag[1] . “https://wordpress.stackexchange.com/”>’. $cat_by_tag[0] .'</a></li>’; } print_r($output_promotion);

List posts that are in the same category as the current post title

First you need to fetch the current category, then grab posts. So, try <ul> <?php global $post; $category = get_the_category($post->ID); $args = array( ‘numberposts’ => -1, ‘offset’=> 1, ‘category’ => $category ); $myposts = get_posts( $args ); foreach( $myposts as $post ) : setup_postdata($post); ?> <li><a href=”https://wordpress.stackexchange.com/questions/56247/<?php the_permalink(); ?>”><?php the_title(); ?></a></li> <?php endforeach; ?> </ul>

associate posts to a page

You can use wp_query with different arguments to list the posts that you want to appear on that specific page (i.e. all the post that are assigned to the X category or all the post that belong to Y author a.s.o). You can find on the WordPress Codex a detailed presentation and examples on how … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)