Category Archives: Easy Coding for Wordpress

87 | Customize the Category Archive Page Title

g+

WordPress allows you to set a ‘category base’ to show in the permalinks of the category archive pages – you can set this under ‘dashboard – settings – permalinks – category base’. However, the latest default theme Twenty Fifteen is … Check the whole post »

Posted in Easy Coding for Wordpress, WordPress | Leave a comment

83 | Exclude Pages from Default Menu in Twenty Eleven

g+

If you are not using the custom menu, the theme uses `wp_page_menu()` as a fallback. As always, start by creating a child theme of Twenty Eleven; http://codex.wordpress.org/Child_Themes To exclude pages from the default menu, edit functions.php in the child theme … Check the whole post »

Posted in Easy Coding for Wordpress, Twenty Eleven, WordPress | Tagged , , , , | Leave a comment

78 | A Real ‘Full Width Page’ Template for Twenty Fourteen

g+

To create a real full width page – with no sidebars whatsoever – in your WordPress site while using a child theme of the default theme Twenty Fourteen, program this page template file with the file name real-full-width.php (important as … Check the whole post »

Posted in Easy Coding for Wordpress, Twenty Fourteen, WordPress | Tagged , , , | 30 Responses

77 | Featured Image in Header of Archive Pages in Twenty Eleven

g+

To show the ‘featured image’ of the top post as header image in an archive page in the Twenty Eleven theme, edit header.php in the child theme; change this section: to:

Posted in Easy Coding for Wordpress, Twenty Eleven, WordPress | Tagged , , , | 4 Responses

76 | Alphabetize Category Posts Using ‘pre_get_posts’ Action

g+

Occasionally you want to have a different sort order in some of the category archives, for example, you want to output the posts of a specific category in alphabetical order. Instead of having to create a category template for each … Check the whole post »

Posted in Easy Coding for Wordpress, Tips & Tricks, WordPress | Tagged , , , , , , , | Leave a comment

74 | Linking or Enqueuing Stylesheet in WordPress Themes

g+

There are several ways of adding a stylesheet to a WordPress theme; examples: A: linking the stylesheet (in the head section of header.php) – linking the main stylesheet style.css: or – linking another stylesheet custom.css: B: enqueuing the stylesheet (in … Check the whole post »

Posted in Easy Coding for Wordpress, Tips & Tricks, WordPress | Tagged , , , , , , , | 3 Responses

66 | Page-Of-Posts Template for Twenty Twelve

g+

Page templates are a good way of customising the layout of WordPress sites – and the Codex contains the example code of a ‘Page Of Posts’ page template for the current default theme Twenty Eleven. With the future default theme … Check the whole post »

Posted in Easy Coding for Wordpress, Tips & Tricks, Twenty Twelve, WordPress | Tagged , , | 9 Responses

64 | Insert the Featured Image into the Post Content with Shortcode

g+

Somebody asked today, how to insert a ‘featured image’, aka post thumbnail, into the content of a post. Obviously this cannot be done with the usual WordPress function ‘the_post_thumbnail()’ as the php code would not get rendered in the post’s … Check the whole post »

Posted in Easy Coding for Wordpress, Tips & Tricks, WordPress | Tagged , , , , | 3 Responses

59 | Editing Widget Parameters per Filter Function WordPress

g+

If you want to change the parameters of the default widgets, for instance the font sizes of the tag cloud widget, you will notice that you can’t access the codes directly. Editing the core files in the /wp-includes folder is … Check the whole post »

Posted in Easy Coding for Wordpress, Tips & Tricks, WordPress | Tagged , , , , , | 3 Responses

58 | Adding a Custom Widget Area to a WordPress Template

g+

The Codex has a chapter on how to add new widget areas (commonly referred to as ‘sidebars’) to a theme’s template: ‘Widgetizing Themes‘ This example here is to give you the direct code to add to functions.php and to the … Check the whole post »

Posted in Easy Coding for Wordpress, Tips & Tricks, WordPress | Tagged , , , , | 11 Responses