Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged post



« Prev 1 2 3 4
Check if current post type is a custom post type – WordPress. Returns a true/false-statement. Can be used outside The Loop.
0 3614 posted 12 years ago by jonasethomsen
This is a combined version of Bill Erickson's hide post editor and rilwis' Metabox include for specific IDs. It hides the editor for a specified post ID. You can have multiple IDs, just separate with commas.
1 1225 posted 12 years ago by rickahontas
This example of code shows how to do a simple POST request in PHP to another web server by using a socket connection.
0 3068 posted 12 years ago by apphp-snippets
This adds custom columns to a custom post type
0 2451 posted 12 years ago by bitsculptor
This example of code shows how to do a simple POST request in PHP to another web server by using a socket connection.
0 3178 posted 12 years ago by apphp-snippets
This is some code using Thematic Child Theme overrides to remove thematic's post thumbnails and add Post Thumbnails outside of the .entry-content <div> so that POst Thumbnails can be styled separated from all post Meta. See this page for an example...
0 2191 posted 12 years ago by AndrewThinkUp
This function dosen't use curl, or any other libraries. Just include it in your function library and use it like this: $Post_result = _post('http://www.yourdomain.com/your_path/post_api.php',"method=fetchJson&params=select * from user");
0 2549 posted 12 years ago by halk
Does not work at the moment. So don't copy it.
0 1818 posted 12 years ago by eridesigns
This gives the code for creating a custom post type with all the necessary labels and even custom message support, and it gives the code for a custom taxonomy with that post type.
0 2393 posted 12 years ago by bitsculptor
This allows you to change the post updated message that wordpress automatically inserts.
0 2322 posted 13 years ago by bitsculptor
Useful for adding Custom Post types to navigation this will list all custom post type posts
1 2306 posted 13 years ago by i-am-andy
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 2432 posted 13 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 1468 posted 13 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 2883 posted 13 years ago by nerdsane
WordPress top posts: custom post type / taxonomy Ordered by comment count
0 2723 posted 13 years ago by lswilson
Register a Custom Post Type and a Custom Taxonomy in Wordpress
0 1544 posted 13 years ago by i-am-andy
Custom post page name
0 2189 posted 13 years ago by hernanvionnet
0 2578 posted 14 years ago by maxxscho
add this in functions.php
0 2263 posted 14 years ago by IronMANro
Get posts from a Custom Post Type
0 3387 posted 14 years ago by i-am-andy
add this to functions.php and you won't have to mess with the index page.
0 2216 posted 14 years ago by cpres
0 1139 posted 14 years ago by nebojsac
Este código pagina los resultados de wordpress, según los parámetros que se le asignen a la clase WP_query.
0 1151 posted 14 years ago by serialk89
this creates a function inside a widget object to create a dropdown menu with all the custom post types created in wordpress functions.
0 1356 posted 14 years ago by hugosolar
0 861 posted 14 years ago by serialk89
Query any Post Type anywhere
0 989 posted 14 years ago by zealmurapa
post thumbnail function and display as background if function exists
0 1217 posted 14 years ago by zealmurapa
« Prev 1 2 3 4