Category: WordPress

Use Short code in template or php code

Trying to output shortcode in a PHP or template file, wrap your code in the shortcode function like so: <?php echo ...

Read More

Display WordPress Categories in a List

Use the following code to create a list of categories in WordPress. <?php //$taxonomy = 'genre'; //$orderby = 'name'; $show_count = ...

Read More

PHP Limit the amount of text being displayed in a string

Use the following PHP function to limit the number of characters ($limit) to be returned from the original string ($source). //limit text ...

Read More

WP Plugins unable to display, WP unable to check versions

Check wp-config.php file ig the following is uncommented: //define('WP_HTTP_BLOCK_EXTERNAL', true); or if the following is enabled ...

Read More

Create an options page

Use the following code in functions.php to create an options page   if( function_exists('acf_add_options_page') ) { $option_page = ...

Read More

tag.php not including tags from custom post types

Ran into a very funny problem when creating a template, basically, when a tag was clicked and the template sourced the tag.php page it was ...

Read More