Current versions of WordPress now have image alignment built-in. WordPress adds CSS classes to align the image to the right, left, and center of a paragraph, so the text will [...]
Code that preserves HTML formating to the automatically generated excerpt. Also modifies the default excerpt_length and excerpt_more filters.
Add the following code to your functions.php file to change the dashboard footer text.
Put the login – logout link in a custom nav menu by adding the following code to your functions.php file.
Sometimes you don’t want users to be able to access certain submenu links in the admin. Add the following code to functions.php to make these unavailable.
Add a horizontal rule buttom to the text editor by placing the following code to the functions.php file.
Code snippet for Custom Post Type with Custom Taxonomy.
If you want to display single post page using different single post template, then wordpress in_category() function will help to create different single post template.
Open phpMyAdmin, go to your wp database. Open wp_options table. Search for three option_name – template, stylesheet, and current_theme. Change the value to the name of the theme you want.
JuneauTakeOut.com was developed with the WordPress CMS as an information site in Juneau, Alaska. We used google maps for restaurant locations and scanned takeout menus for reference. We developed it [...]
Burton wanted an online resume for his radio engineering consultation. So we came up with a php site that works well for him. He also wanted a private section for [...]
To create a list of posts use the following code. However this will not work in the header.php
To change the length of the post excerpt use this code in your functions.php file.
Sometimes you would like to put your widgets in several places in your word press theme. Following is the code to use.
Custom fields consist of two parts: A key and a value. There are different options to display those fields, the one thing they all have in common: you have to [...]
Use a conditional tag for the custom field to add styles only if the custom field is available.