Profile
Achievement
crypticsoft's Recent SnippetsTagged post
- All /
« Prev 1 Next »
I need this function all too often and figured I'd share it. Limit the_content() by word limit by using built in WordPress functions.
0
998
posted 12 years ago by crypticsoft
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
988
posted 12 years ago by crypticsoft
The code references a custom post type (mysite_listings) and adds custom columns for editing the listings in the admin. This adds custom fields onto the edit / list views.
Note: You will want to change instances of "mysite_listings" with your own...
1
1280
posted 13 years ago by crypticsoft
Example shows how to register post types for :
* Listings (defined as 'mysite_listings' with the rewrite slug 'lookup')
* Then registers the 'usa_states' taxonomy to the mysite_listings post type.
0
1345
posted 13 years ago by crypticsoft