Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged wordpress



1 ... 6 7 8 9 10 ... 42
0 1307 posted 14 years ago by shufflepath
0 1410 posted 14 years ago by shufflepath
When you create a custom post type and need to query by ID then you can pass in the 'field' and the 'terms' with the ID for that post type.
0 1734 posted 14 years ago by crypticsoft
so you want to have your url structure like : yourdomain.com/post-type/286 add the following snippet to your functions.php and change the post-type names where appropriate
0 3357 posted 14 years ago by nerdsane
Remove meta boxes from the Wordpress admin area. Useful for simplifying Wordpress' admin interface for your clients. Add this snippet to your Wordpress theme's functions.php file.
0 1592 posted 14 years ago by f6design
Create a comma separated list of a post's custom taxonomy terms.
0 2550 posted 14 years ago by f6design
0 1135 posted 14 years ago by shufflepath
This will show content between this only on frontpage of the website. By default if you have blog on frontpage and goto page 2 or 3 you'll still see the content.
0 1412 posted 14 years ago by Farhan
Insert inside the loop
0 1260 posted 14 years ago by jwaldeck
goes in the ~/wp-content/theme/functions.php
0 1332 posted 14 years ago by darronz
Individuelle Infoboxen im Kategorie-Archiv von WordPress
0 1287 posted 14 years ago by Perun
The php if statement below checks to see if the content is an archive page. If it is, then it echoes the html structure for meta description tags and also includes the month and year to avoid content duplication.
0 1664 posted 14 years ago by goatboy91587
WordPress top posts: custom post type / taxonomy Ordered by comment count
0 3042 posted 14 years ago by lswilson
For use with Headway Child Themes.
0 1275 posted 14 years ago by codepunk
Disables the design editor in the VE when using a child theme.
0 1229 posted 14 years ago by codepunk
Add stuff to the footer block.
0 1405 posted 14 years ago by codepunk
1 ... 6 7 8 9 10 ... 42