small problem in the article ()

There’s two issues at play here. First, you’ve got two sets of parentheses: ↓ Here ↓ And Here echo ‘<div>(‘ . comments_number( ‘(0) ‘, ‘(1)’, ‘(%)’ ) . ‘)</div>’; You only want one. Second, you’re trying to concatenate a string (.) with a function, comments_number(), that echoes. This results in comments_number() being outut immediately, and … Read more

How do I get tags linking to proper pages (/tag/sample-tag -> pages with that tag)

Found it: The posts I’m working with are instances of custom posts, and the default get_posts() function assumes that posts are just, well, posts. So it wasn’t finding them, and was properly returning “none”. Solution: I added some code to my theme’s function.php file, like so: function set_up_theme() { …other stuff function mytheme_pre_get_posts () $query->set(‘post_type’, … Read more

Is there a template tag I can use to link to the archive page corresponding to the month that a post was published on?

This is straight from the WordPress codex <?php $arc_year = get_the_time(‘Y’); ?> <?php $arc_month = get_the_time(‘m’); ?> <a href=”https://wordpress.stackexchange.com/questions/18602/<?php echo get_month_link($arc_year, $arc_month); ?>”>archive for <?php the_time(‘F Y’); ?></a>

how to add # before tags?

You could just do cosmetic changes on your theme with some javascript: <script type=”text/javascript”> jQuery(document).ready(function(){ jQuery(‘.tags li a’).prepend(‘#’); }); </script> <ul class=”tags”> <li><a href=”https://wordpress.stackexchange.com/tag/sometag/”>sometag</a></li> </ul>

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