Welcome To Snipplr


Everyone's Recent Snippets Tagged wordpress



1 ... 8 9 10 11 12 ... 48
Show only children posts of a parent custom post type, not all child posts
0 1278 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 959 posted 12 years ago by i-am-andy
Show all child pages content and featured image on the parent page
0 1049 posted 12 years ago by i-am-andy
Wordpress 3.3 custom post type query that will get all of the taxonomies, loop through them, and output the posts from each.
0 741 posted 12 years ago by dolbex
adds a shortcode
0 426 posted 12 years ago by silviogohl
1 427 posted 12 years ago by madnil
then in your template code you just use.. echo excerpt(25);
1 535 posted 12 years ago by Omegakenshin
Register a Custom Post Type and a Custom Taxonomy in Wordpress
0 963 posted 12 years ago by i-am-andy
Add this within the loop:
0 575 posted 12 years ago by xcsteve99
Wordpress by default wraps images in <p> tags, this kills that.
3 850 posted 12 years ago by rliverman
Ever want to filter out a category from your blog page. Here's how you do it! Just add this snippet to your functions.php file.
0 611 posted 12 years ago by goatboy91587
Use this in your functions.php Sets one language for WP Admin and the other for front-end.
2 669 posted 12 years ago by mihael
In this example I used the "Members" plugin to add a capability called "hide_jobs" and that was the trigger to hide certain admin menus and also hide the "Right Now" dashboard widget.
0 878 posted 12 years ago by rliverman
Reduce spam on WP installations (comment spam); this snippet does not look for https referers.
0 962 posted 12 years ago by no4h
0 610 posted 12 years ago by swoicik
0 505 posted 12 years ago by swoicik
0 604 posted 12 years ago by swoicik
0 553 posted 12 years ago by swoicik
0 487 posted 12 years ago by swoicik
Courtesy CSSTricks (http://css-tricks.com/snippets/wordpress/turn-on-more-buttons-in-the-wordpress-visual-editor/)
1 752 posted 12 years ago by adambundy
function that creates a template tag that can be used to insert excerpts with different lengths. Also controls characters that come after excerpt
0 581 posted 12 years ago by verticalgrain
UPDATE: might be easier or faster to use this now (also courtesy Pippin): http://pippinsplugins.com/get-all-attached-media/ **courtesy Pippin Williamson (http://pippinsplugins.com/image-gallery-short-code-using-post-attachments/) use shortcode...
1 784 posted 12 years ago by adambundy
Adding custom fields to the quick edit panel in Wordpress is easy using built-in hooks. However, the hook to add fields seems to be called multiple times, adding duplicate fields to the quick edit panel. Adding this code to the top of the function be...
0 684 posted 12 years ago by briteweb
From CSS-Tricks.com
0 517 posted 12 years ago by wiryanm
Code snippet to create custom post type FAQ and custom taxonomy Topics in WordPress v. 2.9.2+
1 713 posted 12 years ago by mommygeekology
When adding a meta box to a 'page' in Wordpress (as opposed to a post, or custom post type), you might want to disable the default editor. Use this snippet in your theme's functions.php file to disable the editor for a specific page template.
3 1215 posted 12 years ago by f6design
1 ... 8 9 10 11 12 ... 48