7 articles General

LineBreak Shortcode

Line Breaks The WordPress content editor is notorious for eating/munching line breaks. This is because of a combination of WordPress functions which run “behind the scenes” whenever saving content or switching between “text” and “visual” views. WordPress will seek out recurring line breaks, and remove them from the editor. Try for Yourself To get an…

Shortcodes in Widgets

Widget Background By default, WordPress does not allow shortcodes to be used in widgets. Attempting to use a shortcode in any widget area will result with just the shortcode text being displayed on the front end of the website. There is a very simple function which can be included from a child theme that allows…

Shortcodes in Excerpts

Excerpt Background By default, WordPress does not allow shortcodes to be used in excerpts. Attempting to use a shortcode in an excerpt will result with just the shortcode text being displayed on the front end of the website. There is a very simple function which can be included from a child theme that allows shortcodes…

WP Edit Pro Post Excerpt

Post Excerpts The post excerpt is commonly used by themes to display shortened “excerpts” of the content on certain website pages. One common example is when viewing a page of archives. Each archive may show an excerpt of the posts associated with that archive. Another example may be when you click an authors link. The…

WP Edit Pro Page Excerpt

Page Excerpts Page excerpts are slightly different than post excerpts. In my three years of development with WordPress; I have only seen page excerpts a few times. Page excerpts may be used in custom queries; to show relevant matches to a search (for example). There are many plugins available in the WordPress Plugin Repository which…

Profile Editor

WordPress Profile Editor The profile editor is where users can add relevant information about their profile; typically shown on the author page. It may also be added (via a plugin or theme option) to the bottom of each post created (This article was written by…). The default WordPress profile editor is quite simple. If you…

PHP Widgets

PHP Widgets Sometimes it may be necessary to run an advanced query in a widget area. Many, many WordPress plugins use a similar process to execute the functionality of the plugin. Visit the plugin settings page -> General tab. Click the checkbox to enable “PHP Widgets”. This will create a new widget on the admin…