Display Day names with wp_get_archives instead of date

There are no arguments you can pass to do this, and no obvious filters. However, if you dig through the source you will see: 1426 if ( ! $archive_date_format_over_ride ) { 1427 $archive_day_date_format = get_option( ‘date_format’ ); 1428 $archive_week_start_date_format = get_option( ‘date_format’ ); 1429 $archive_week_end_date_format = get_option( ‘date_format’ ); 1430 } That value is used … Read more

Archives widget doesn’t work?

You most probably have a plugin that either uses query_posts, are have a bad filter and/or query that is altering the the main query object ($wp_query) as you have this issue across all themes that you have tested. You should deactivate your plugins one by one and check which one/s are causing the issue. Also, … Read more

Bundle a page with custom url and a function

Make a new file and include a page template to structure the loop and display your bookmarks. <?php /** * Template Name: Bookmarked Page * * @package WordPress * @subpackage Twenty_Fourteen * @since Twenty Fourteen 1.0 */ Then just make sure a page exists called bookmarked (so the url is in place) and set it’s … Read more

Custom Taxonomy Archives Page Errors

The problem is this: register_taxonomy(‘author’, ‘post’, array( //tax args here… )); The first argument, which is taxonomy name, you’ve set to author. WordPress uses that value as the taxonomy query var if a value isn’t explicitly declared. When this taxonomy is queried, author is used to pass the requested term slug to the query. The … Read more

Post filter Month dropdown at front-end like wordpress backend

wp_get_archives creates its links with the function get_archives_link. this function returns plain HTML, but it has a filter you can hook into. You can use the get_archives_link filter to manipulate your HTML with some regex. function my_archives_link($link_html) { //TODO: my regex to manipulate the HTML return $link_html; } add_filter(‘get_archives_link’,’my_archives_link’) Further reading wp_get_archives get_archives_link Filter Hook: … Read more

Custom Post Type tag taxonomy “Page Not Found”

So, it looks like I didn’t understand how a custom taxonomy works. http://joshrodg.com/hallmark/letters/tags/moore/ should be http://joshrodg.com/hallmark/tags/moore/ and http://joshrodg.com/hallmark/letters/tags/kenya/ should be http://joshrodg.com/hallmark/tags/kenya/. My mistake was that I expected the tags to be linked off my custom post type url, and not my main domain. I found the answer here: Archive template for taxonomy terms Thanks, Josh

How to allow Readers to Select Post Order?

What you need here is Ajax. You will need to read about how to use WordPress Ajax (link). When your visitor click on select field to choose sorting, you need a JS function to handle the data about how to sort and where the visitor in, then a js function to make ajax request to … Read more

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