Custom design calendar archive

They’re not using WordPress, so whether they’re using a plugin for their specific CMS or not is a moot point. However, WordPress already includes a calendar widget for the sidebar. And there are several plugins in the repository that do the same: Calendar archive widgets. You will need to pick one and modify your site’s … 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>

Limit archive widget results

I would use the PHP Code Widget from Otto and then simply put this in the widget to limit the archives to 7 months: <ul><?php wp_get_archives(‘type=monthly&limit=7’); ?></ul> (Give the widget a title like Archives if you want, and remove the default WordPress Archive widget.) Function Reference/wp get archives

WordPress sitemap with Custom Post Types

Here is a quick crack at it, which should work in two level depth: <h2 id=”posts”>My Post Type</h2> <ul> <?php $not_in = array(); //to avoid naming the same post over and over //get top level terms $Parent_terms = get_terms( ‘my_taxonomy’, array(‘orderby’ => ‘name’,’parent’ => 0)); foreach ($Parent_terms as $term) { echo “<li><h3>”.$term->name.”</h3>”; echo “<ul>”; //get … Read more

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