sidebar isn’t showing, what’s wrong w/ this code?

Here’s what I have in my sidebar.php: <aside id=”sidebar”> <?php if ( is_user_logged_in() ) { echo ‘<a href=”https://wordpress.stackexchange.com/community”><img id=”visit-the-forums” src=”‘. bloginfo(‘template_url’) . ‘/images/visit-the-forums.png” alt=”Check out the Forums!” /></a>’ } else { echo ‘<a href=”https://wordpress.stackexchange.com/community”><img id=”join-the-forums” src=”‘. bloginfo(‘template_url’) . ‘/images/join-the-forums.png” alt=”Join the Forums!” /></a>’ } ?> <a id=”side-ad”> <img src=”<?php bloginfo(‘template_url’) ?>/images/ipad-ad.png” alt=”iPad 2 Giveaway!” /> … Read more

How to display posts month by month?

How could wp-query be used to show posts month by month, and have it only show the past year? Or is it possible some wp_archive hack could handle this? 3 Answers 3 WordPress 3.7 introduced the date_query to display posts month by month: $args = array( ‘date_query’ => array( array( ‘month’ => $month ) ) … Read more

How do I pass WordPress’s get_bloginfo(‘siteurl’) to Jquery?

I’m guessing this is a really dumb question, but I’m far more familiar with PHP/WordPress and I’m just getting started with jQuery so I’m not even sure what to search on. Is there a way to pass the output of echo get_blogifo(‘siteurl’) To jQuery? I’m trying to get this to work: $(‘a.getstarted’).attr(‘href’, ‘<?php echo get_bloginfo(‘siteurl’); … Read more