Pulling latest posts from wordpress into any page

In order to pull a set number of words use:

Calling “wp-blog-header.php” is needed in order to have the wordpress functions available. If you

Read more

HTML and Plain text emails

Read more

Avoiding save_post to run your code twice

When attaching a function in functions.php to save_post I found out it runs my code twice. Finally found a solution using:

Read more

Getting multiple checkbox values in PHP

If you give the checkboxes the same name, ending in [], the values are returned as an array.

Then in PHP …

 

Read more

Selecting text by clicking on a button

 

Read more

Default argument values in function declaration

A function may define C++-style default values for scalar arguments as follows:  Example #3 Use of default parameters in functions

The above example will

Read more

Media break-points

@media (min-width: 1200px){css attributes}@media (max-width: 1199px) and (min-width: 981px){css attributes}@media (max-width: 980px) and (min-width: 641px){css attributes}@media (max-width: 640px) and (min-width: 481px){css attributes}@media (max-width: 480px) and

Read more