Connect to Separate Database»
The wpdb object can be used to access any database and query any table. Absolutely no need to be Wordpress related, which is very interesting. The benefit is the ability…
DB Query, WP/CP | Type: PHP
Create sub posts for a WordPress custom post type»
This has to do with creating hierarchical CPTs, so you can have ‘sub-posts’ as children of a CPT single.
CPT, WP/CP | Type: PHP
Disallow Indexing of PDFs in Media»
Important if PDFs are only available behind login or downloadable after transaction.
¡Important!, eCommerce, WP/CP | Type: Other
Display Featured Image on Listing»
How to add featured image to other post types. ADD TO THEME FUNCTIONS // This theme uses post thumbnails add_theme_support( 'post-thumbnails', array( 'plans','listings','news','post' ) ); ON POST-TYPE SPEC 'supports' =>…
Images, PHP, WP/CP | Type: PHP
Display the Title for the Posts / Blog Page»
You can’t use the standard the_title(); template tag for the page name of the page that displays the blog listing (index.php); that tag will display the latest blog post title…
PHP, Template Tags, WP/CP | Type: PHP
Event Listing Ordered by Date»
Basic events listing, ordered by date, past events disappearing.
ACF, WP Query, WP/CP | Type: PHP
Filter Custom Post Type by Custom Fields»
Can be found on an Evo blog post with more explanation.
ACF, PHP, WP Query, WP/CP | Type: PHP
Filter Custom Post Type by Taxonomy»
Can be found on an Evo blog post with more explanation.
PHP, WP Query, WP/CP | Type: PHP
Force Private Post»
Have used this for user-created content that is not for public.
Custom Admin, Users, WP/CP | Type: PHP
Generate SALT / Auth Keys»
Add the keys in wp-config.php
Security, WP/CP | Type: PHP