Welcome To Snipplr
Everyone's Recent Snippets Tagged wordpress
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
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
1011
posted 12 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
1347
posted 12 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
850
posted 12 years ago by f6design
Create a comma separated list of a post's custom taxonomy terms.
0
1732
posted 12 years ago by f6design
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
808
posted 12 years ago by Farhan
Select wp_users and wp_posts to retrieve data from both tables in order to display post title, post date, author name with gravatar (gravatar isn't listed in this code)
Note: probably not idea solution, but it's one of many fixes
0
841
posted 12 years ago by ninacess
Go through all the authors of a wordpress import and make them the same as the previous authors (Wordpress 3.3).
0
852
posted 12 years ago by jcottrell
Delete a page of wordpress posts with one click ("Run" in Firebug or Developer Tools)
0
722
posted 12 years ago by jcottrell
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
911
posted 12 years ago by goatboy91587
WordPress top posts: custom post type / taxonomy
Ordered by comment count
0
1379
posted 12 years ago by lswilson
Disables the design editor in the VE when using a child theme.
0
666
posted 12 years ago by codepunk
Another source: http://wpswitch.com/blog/wordpress/an-introduction-to-wordpress-custom-fields/
0
789
posted 12 years ago by morg7801