Josh M
  • Member for 10 years, 3 months
  • Last seen this week
Get Custom Taxonomy Terms by Date
3 votes

This is the working code: // latest edition $taxonomies = array( 'jjm_editions' ); $args = array( 'orderby' => 'ID', 'order' => 'DESC', 'hide_empty' =>...

View answer
Convert Custom Post Types to Custom Taxonomies
Accepted answer
2 votes

Here's the solution that worked for me. I added the below code to a page template (page-test.php) and then created a page called "test," loaded the page, and all the CPTS were converted to ...

View answer
Video Player for Free WordPress Site
Accepted answer
2 votes

For the most popular video services, you can just paste the link on a line by itself in the post editor: https://en.support.wordpress.com/videos/ For mp4 files hosted offsite on unsupported sites, ...

View answer
Pagination on with query_posts in custom post type template
1 votes

@Milo Thanks, the pre_get-posts seems to work perfectly. I was missing that before, thought my choices were between wp_query and query_posts. The below should ONLY alter the query on the "rg_blog" ...

View answer
Pagination of a WP_Query Loop in a child-page page template
0 votes

The problem turned out to be the redirect_canonical filter. That was causing the 301 back to the child page itself. The solution is to selectively disable that filter. Below is what I've done, though ...

View answer
Custom sorting in post columns by ACF Pro Select Field
0 votes

Edited to simplify your conditional check. add_action( 'manage_asgallery_posts_custom_column', 'asgallery_new_column', 10, 2); function asgallery_new_column( $column_name, $post_id ) { if( $...

View answer
Show only one post for each author ( Page loads too slow )
0 votes

Edit: I just tested and it works perfectly. You'll also want to remove pagination from the author template. I haven't tested it, but have you tried pre_get_posts? function author_filter($query) { ...

View answer