Tag Archives: WordPress

88 | Adding Widgets Between Posts in the Index Page

g+

For a child theme of the (current) default theme Twenty Fifteen – a way to add a new sidebar aka widget area to show after the first post in the index page; making use of the action hook ‘the_post’. you … Check the whole post »

Posted in Tips & Tricks, Twenty Fifteen, WordPress | Tagged , , , , , , | Leave a comment

81 | Injecting Multiple adsense Ads into a WordPress Loop

g+

The versatile code injects for instance adsense ad codes several times into the posts of an index or archive page, starting with a pre-set post, and then repeated in regular intervals (up to a set limit of ads per page). … Check the whole post »

Posted in Tips & Tricks, Twenty Fourteen, WordPress | Tagged , | 1 Response

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

75 | WordPress Changing Pluggable Functions Without Child Theme

g+

A new concept (?) – to change a pluggable function of a WordPress theme without creating a child theme. Example – to remove the  post tags output from the posts of Twenty Twelve. Often, these things can be done by … Check the whole post »

Posted in 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

73 | Integrate Pagination Plugins into Twenty Twelve

g+

The ‘next/prev’ posts links are done with a function in Twenty Twelve; twentytwelve_content_nav(). That function is pluggable, which makes it easy to change it in a child theme of Twenty Twelve. To integrate for instance the plugin ‘wp_pagenavi’, you would … Check the whole post »

Posted in Tips & Tricks, Twenty Twelve, WordPress | Tagged , , , , , | 1 Response

70 | Comments on the ‘Posts Page’ in WordPress

g+

If you are using a static home page and have set one of your other pages to be the ‘posts page‘ [Codex], then there is no direct way to allow comments on that page. You will need to do some … Check the whole post »

Posted in Tips & Tricks, Twenty Twelve, WordPress | Tagged , , , , , | Leave a comment

67 | Posts in Two Or Three Columns – Twenty Twelve

g+

If your index and archive pages are getting too long, or if you want to compact the information within those pages a little bit, for instance because the featured images above each post are just too large, consider to change … Check the whole post »

Posted in Tips & Tricks, Twenty Twelve, WordPress | Tagged , , , , , , , | 36 Responses

65 | A Sidebar Template for a Page in the ‘One-Column’ Layout in Twenty Eleven

g+

This article describes the necessary coding to create a page template with a sidebar within a ‘one-column’ layout of Twenty Eleven; the example is for a right sidebar.
Create your own page template from a copy of the sidebar-page.php template; edit the Template Name; correct the coding in sidebar.php; adapt the body_classes in functions.php; set a max width for the template. Check the whole post »

Posted in Tips & Tricks, Twenty Eleven, WordPress | Tagged , , , , , , , | 7 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