Search Result for: News Category

Articles

Branch on ‘Origin/master’ has diverged from local branch

if you have revered a commit and want the remote branch to reflect your revert + latest commits use this bit of code git push -f origin master Note that this will reset your
Read More

WordPress Dash incons

Can be used with your custom post types Link reference:
Read More

How to transfer email accounts and messages between cPanel servers?

Go to etc/ sub folder Download your site domain file Re-upload the your site domain folder to your new server under etc/ Go to the mail/ sub folder Download your site domain file
Read More

Updating Host file on a Mac

If you would like a web address to just point to your local development environment. You will need to edit your local host file. Go to the file Macintosh HD/private/etc/hosts Drag
Read More

Function Reference/get permalink

Use this to add a permalink to the post. <?php echo
Read More

Get featured image thumbnail as image or URL

the following code will return a featured image with <img> tags in a medium size. the_post_thumbnail('medium'); the following code will give you the URL of the featured
Read More

explode()

Explode is used to separate a string of text or values that are differentiated by a marker such as a space or a symbol. example: $pizza  =
Read More

Trim text using wp_trim_words( )

User the following to trim display text. The following example is using a text field. wp_trim_words( get_field('intro_text'), 20
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