Custom Taxonomy From Database

If custom taxonomy makes sense to you as approach to organization of data, but not as interface workflow then you should consider building custom interface for it. Some frameworks out there can work with native taxonomies, but provide alternate interfaces for them. So you might even find something fitting already done. The more low key … Read more

Posting a comment redirects admin/users to blank page

Can you access your site via FTP or through your host control panels file manager? If you can, check to see if there is any code within wp-comments-post.php in the root of your site. If it is empty, paste this inside: <?php /** * Handles Comment Post to WordPress and prevents duplicate comment posting. * … Read more

Is it possible to get a shortcode generated by a plugin, then, using a function, create a new post using that shortcode?

I played around with the plugin files and was able to figure it out myself. For anyone who’s wondering, you can use wp_insert_post. You just need to find what variable the generated shortcode is stored in, which can take a little digging through the plugin files. For the plugin I was working with, it went … Read more

Custom post type with two templates

Assuming post type is my-post-type. We can create a page template with custom query using WP_Query. Let’s say we create template-multier.php with the below code in the root directory of the active theme. <?php /* Template Name: Custom Post Type Archive */ //Custom header stuff here //Custom query for `my-post-type` $args = array( ‘post_type’ => … Read more

Bulk posts from DRAFT Section

An way to do that is using SQL. You probably have access to the database, so you can run this daily. It’s not automatic, but will solve your problem UPDATE wp_posts SET post_status=”publish” WHERE post_status=”draft” AND post_type=”post” ORDER BY rand() LIMIT 5000 Just to explain what this line do: It will get 5000 items (LIMIT … Read more