Currently Browsing The Snippets Category

Adding multiple hidden fields to filter wordpress search

Posted on 4th March, 2017 Leave a Comment

To add multiple fields you’ll first need to create a small funciton in your functions.php   Then in your searchform.php you can add hidden fields like this. If you want to do this with any other filter, for example categories. Repeat the above and replace post_type with cat.

Adding buttons to wp-admin editor

Posted on 4th March, 2017 Leave a Comment

You can add two types to the editor, the first one below adds a button to the “Text” version of the editor. The second enables and adds the “Format” dropdown to the “Visual” version of the editor. For the text version we’ll need to create the shortcode that’s going to be applied by the button.…

Moving the menu items in WP Admin

Posted on 29th January, 2015 Leave a Comment

This was a snippet I grabbed off of tutsplus! I’ve found this super useful when I’ve been creating customer themes to give a menu item a higher priority in regards to it’s use in the theme. functions.php

Next and Previous Posts Navigation With Thumbnails.

Posted on 31st May, 2014 8 Comments

A nice way of adding next and previous post navigation with thumbnails and a short excerpt. I’ve created a file that you can just add into your theme folder and call in your actual theme with this include snip; If you want to download my file then click here, otherwise you can copy and paste…

Adding Breadcrumbs without a plugin

Posted on 26th May, 2014 Leave a Comment

So there are plenty of plugins available if you just want to add breadcrumbs to your theme, but if you want something a little lighter then you could just add this to the theme functions.php. This adds a simple breadcrumb to your theme. THIS HAS BEEN RECENTLY UPDATED, I WISH I COULD REMEMBER THE ORIGINAL…