i-am-andy


Member since 07/29/2011

23 snippets

3562 profile views

2 Comment(s) Posted

View their favorites

Profile

Achievement

first submission:submitting first snipplet

i-am-andy's Recent Snippets



« Prev 1 Next »
A simple way of displaying a random list item. Could be used to randomly display anything. Demo: jsfiddle.net/uRd6N/ (keep clicking run)
0 1684 posted 10 years ago by i-am-andy
Suppose you wanted to check if a user was viewing a singular post with the post type of testimonial. You can use the next code sample to perform this check.
0 877 posted 11 years ago by i-am-andy
Displaying your latest tweets is a good way to encourage people to follow you on Twitter. The most common place to display tweets is in the sidebar, although you can add them to any area of the website.
0 807 posted 11 years ago by i-am-andy
Get Wordpress wp_get_archives for a specific category... by default it sghows all categorys
0 1251 posted 11 years ago by i-am-andy
Load latest version of jQuery from Google Libraries API and de-register Wordpress version
0 1183 posted 11 years ago by i-am-andy
Useful for adding Custom Post types to navigation this will list all custom post type posts
1 727 posted 11 years ago by i-am-andy
Show only children posts of a parent custom post type, not all child posts
0 1273 posted 12 years ago by i-am-andy
Add a custom ID to the body, useful for when the classes added to the body aren't descriptive enough on pages like Archives and single
0 948 posted 12 years ago by i-am-andy
Show all child pages content and featured image on the parent page
0 1036 posted 12 years ago by i-am-andy
Register a Custom Post Type and a Custom Taxonomy in Wordpress
0 952 posted 12 years ago by i-am-andy
If you’ve ever wanted to display your latest Twitter tweets on a website, here is method to do that using PHP.
0 733 posted 12 years ago by i-am-andy
Change the text of the jquery cycle pager element. By default is is 1, 2, 3 etc but you can change this to text via a variable
1 763 posted 12 years ago by i-am-andy
Remove the info / address pop up on a google map embed code. Until last month: the iwloc parameter was responsible to GET the window opened or not the following way: It the parameter was missing by deafult the infow window was NOT opened. And...
0 1213 posted 12 years ago by i-am-andy
The admin pages listing the site’s posts and pages come with various text columns (title, tags, categories, author and so on). In order to see what the featured images are, you have to visit each post or page individually. What I will show here, is...
0 726 posted 12 years ago by i-am-andy
Only show content if Custom Field exists
0 749 posted 12 years ago by i-am-andy
Changes the title and moves the featured image box in Wordpress admin area. Add this to functions.php
0 638 posted 12 years ago by i-am-andy
Add or Change Content in the Featured Image Meta Box Posted on March 21, 2011 Perhaps you need to provide a little extra instruction about the Featured Image meta box. It doesn’t take much to add your own text to that box:
0 762 posted 12 years ago by i-am-andy
Add a class to every 4th item using jQuery nth-child and add class
0 638 posted 12 years ago by i-am-andy
A small tip I picked up yesterday while developing a HTML email for a client. If you are testing in Hotmail using a browser other than Internet Explorer, you may notice that the email seems to left align and doesn’t display any background colours o...
0 632 posted 12 years ago by i-am-andy
Useful jQuery for mutliple items on a page that are using the same jquery function and classes to perform an action. By traversing the dom like this the function will only be applied to the item you are clicking on and not all elements on the page th...
0 692 posted 12 years ago by i-am-andy
Really simple jQuery random image
0 641 posted 12 years ago by i-am-andy
Get posts from a Custom Post Type
0 862 posted 12 years ago by i-am-andy
Useful snippet for getting a specific number of posts from a specific category, useful for news listing in sidebar
0 551 posted 12 years ago by i-am-andy
« Prev 1 Next »