Version control and working on a WordPress website locally while being able to push the changes to live site with the click of a button is something that most of us (esp. those that have seen the benefits) appreciate the usefulness of. In this tutorial I share step-by-step details of the process I have pieced […]
WordPress
Sublime Text Snippets for Genesis
Sublime Text is a fantastic cross-platform text/code editor that’s fast, lightweight, customizable and powerful. The same adjectives hold good for the Genesis WordPress framework. In the past Justin Tallant has created a Sublime Text package for Genesis that includes 24 snippets some of which have not been updated to account for the HTML5 update of […]
Keyboard Shortcut for inserting/editing a link in Text view of WordPress editor
I spend a lot of time in WordPress editor in Text view and often wondered how I can set hyperlink for selected text by pressing a keyboard shortcut. Turns out it is possible to do so only when in the Visual view via Cmd + K or Alt + Shift + A but not when […]
Comma separated taxonomy terms in WordPress
Want to display unlinked terms that the current entry has for a specific custom taxonomy within the loop? Here’s the sample code for that. Replace staff-position with your custom taxonomy. and the function call: Slightly different method: http://codex.wordpress.org/Function_Reference/get_the_terms#A_Basic_Example
Adding Categories support to a Custom Post Type in WordPress
When a CPT is manually created in WordPress using register_post_type function it can be linked to the built-in category taxonomy via When register_post_type() is defined without support for categories and is coming from a plugin that you can (should) not modify, it is still possible to add categories support to the CPT by adding the […]
Custom WordPress widget showing CPT entries from the same category/categories
Continuing from my earlier article titled How to create a custom widget that displays value of a custom field in WordPress, here I am going to share how I have set up a custom widget that pulls a fixed number of Custom Post Type entries that have been categorized under the same category/categories that the […]
How to create a custom widget that displays value of a custom field in WordPress
In a recent task that I worked on, the requirement was to set up a custom field called “Related Services” for Posts and display this field’s value in a sidebar widget. The widget should appear on the front-end i.e., on the single Post page only if the field has been populated for that particular Post. […]
Displaying Posts output by Display Posts Shortcode in Masonry style
On a site that I have recently taken over, the client tried using Essential Grid for displaying groups of Posts (each tagged with a specific term) in Masonry style. But due to some conflict with Optin Monster, only the loader was appearing for non-logged in visitors – not the Posts themselves. In this article I […]
Collapsible Horizontal Opt-in form in Genesis
In the comments section of my tutorial titled Adding a horizontal opt-in form in Genesis, a reader asked: Got this form to work perfectly! Only question is finding a way for people to collapse it if they’re already subscribed or just want to hide it on the screen. I want it to show up by […]
Alternate border colors for Posts in WordPress
Vanessa asks, @srikat Is it possible to make the border colors alternate for posts in Genesis?— Vanessa! (@withgreatheart) December 12, 2014 We can add odd/even post class for Posts alternately and use these in CSS. Adding the following in child theme’s functions.php will add ‘odd’ class to 1st (top most), 3rd, 5th.. and ‘even’ class […]
Recent Comments