Vertically Center Bootstrap Modals to Fit in Browser Window

Vertically center bootstrap modals without setting a height. Modal max-height will not exceed the window height with scrollable .modal-body and adapts on resize. You will need these JS and CSS snippets:

 

  View this on Codepen

Change Archive Post Number for Custom Post Type

Modify the number of WordPress posts or custom posts to be displayed on a custom archive page by adding this filter to your functions.php file in WordPress.

  Change the number of “posts_per_page” to meet your specs, if you … Continued

Add Content or Description to Featured Image Meta Box

 

preg_replace to conditionally replace twitter hashtag and user mentions with urls

Linkify your twitter hashtags and twitter user mentions! Need to replace twitter hashtags and usernames with the actual Twitter hashtag search query links/URLs and user profile pages? Twitter Username / User Mention Preg_replace

  Twitter Hashtag Preg_replace

  … Continued