Search Result for: Wordpress Category

Articles

Add a new widget position

Follow these couple of steps to add a new widget position that new widgets can easily be dropped into in
Read More

Identifying template name in functions.php file

Main reason for using this function is to load .js scripts only on pages required via the functions.php
Read More

Setting up Multi Sites in wordpress

Preparation Backup your database and files. Check if Pretty Permalinks are working on your site Deactivate all active plugins ( you can reactivate plugins after setting up the
Read More

Functions used on Blog post (home.php) pages

Post title <?php the_title(); ?> Post content <?php the_content(); ?> Post excerpt <?php the_exerpt(); ?> Post Category <?php the_category(', '); ?> The
Read More

remove or customise icon found in ‘previous_post_link()’ and ‘next_post_link()’

Use the following code to remove the default backward and forward icons. Original: <?php previous_post_link() ?> <?php next_post_link(); ?> Change to: <?php
Read More

Checking if a custom post type field exits

if(get_field('post_type_name')){ //output value if poste type exists
Read More

Display page / post / custom post type title

Display the page title using the following
Read More

ACF Displaying a select field

To display field valuses use this code $field = get_field_object('field_name'); $value = get_field('field_name'); $label = $field['choices'][ $value
Read More