Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged post



« Prev 1 2 3 4
  1. FAV Check if current post type is a custom post type – WordPress

    Check if current post type is a custom post type – WordPress. Returns a true/false-statement. Can be used outside The Loop.
    PHP php post wordpress
    posted 6 years ago by jonasethomsen
  2. FAV Hide Page/Post Editor in Admin Backend

    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.
    PHP page post wordpress saved by 3 people
    posted 6 years ago by rickahontas
  3. FAV Doing POST Request by Socket Connection

    This example of code shows how to do a simple POST request in PHP to another web server by using a socket connection.
    PHP php post
    posted 6 years ago by apphp-snippets
  4. FAV Custom columns for wordpress custom post type

    This adds custom columns to a custom post type
    PHP post wordpress
    posted 6 years ago by bitsculptor
  5. FAV Doing POST Request by Socket Connection

    This example of code shows how to do a simple POST request in PHP to another web server by using a socket connection.
    PHP php post
    posted 7 years ago by apphp-snippets
  6. FAV Move Thematic Post Thumbnail Outside of Entry-content

    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...
    PHP image post wordpress
    posted 7 years ago by AndrewThinkUp
  7. FAV POST Function Using HTTP Headers Return Result In A Variable

    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");
    PHP function php post
    posted 7 years ago by halk
  8. FAV Custom Post Type with a Metabox field

    Does not work at the moment. So don't copy it.
    PHP post
    posted 7 years ago by eridesigns
  9. FAV Custom post type, taxonomy, and messages

    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.
    PHP post wordpress
    posted 7 years ago by bitsculptor
  10. FAV custom post type custom update message

    This allows you to change the post updated message that wordpress automatically inserts.
    PHP post wordpress
    posted 7 years ago by bitsculptor
  11. FAV List Custom Post Type anywhere

    Useful for adding Custom Post types to navigation this will list all custom post type posts
    PHP post wordpress saved by 2 people
    posted 7 years ago by i-am-andy
  12. FAV Limit WordPress the_content by words

    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.
    PHP post wordpress
    posted 7 years ago by crypticsoft
  13. FAV WordPress Query Taxonomy by ID

    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.
    PHP post wordpress
    posted 7 years ago by crypticsoft
  14. FAV Wordpress Custom Post Type : POST ID in post url

    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
    PHP post wordpress
    posted 7 years ago by nerdsane
  15. FAV Top Posts: Custom Post Type/Taxonomy by Comment Count

    WordPress top posts: custom post type / taxonomy Ordered by comment count
    PHP post wordpress
    posted 8 years ago by lswilson
  16. FAV Wordpress register Custom Post Type and Custom Taxonomy

    Register a Custom Post Type and a Custom Taxonomy in Wordpress
    PHP post wordpress
    posted 8 years ago by i-am-andy
  17. FAV get Custom post page name

    Custom post page name
    PHP page post wordpress
    posted 8 years ago by hernanvionnet
  18. FAV Wordpress if statement - custom post type

    PHP post wordpress
    posted 8 years ago by verticalgrain
  19. FAV Wordpress register custom post type

    PHP post wordpress
    posted 8 years ago by maxxscho
  20. FAV Custom post type tags/categories archive page

    add this in functions.php
    PHP category post wordpress
    posted 8 years ago by IronMANro
  21. FAV Get Posts from Custom Post Type

    Get posts from a Custom Post Type
    PHP post
    posted 8 years ago by i-am-andy
  22. FAV Wordpress - Multiple Post Types in Loop

    add this to functions.php and you won't have to mess with the index page.
    PHP post wordpress
    posted 8 years ago by cpres
  23. FAV Handle all POST variables in a loop

    PHP php post
    posted 8 years ago by nebojsac
  24. FAV WordPress register custom post type code

    PHP post wordpress
    posted 8 years ago by nathanbweb
  25. FAV PAGINACION DE POST WORDPRESS

    Este código pagina los resultados de wordpress, según los parámetros que se le asignen a la clase WP_query.
    PHP post wordpress
    posted 8 years ago by serialk89
  26. FAV Get custom post types inside a wordpress widget

    this creates a function inside a widget object to create a dropdown menu with all the custom post types created in wordpress functions.
    PHP post wordpress
    posted 8 years ago by hugosolar
  27. FAV Wordpress - Recent Post

    PHP post wordpress
    posted 8 years ago by serialk89
  28. FAV Thesis: change teaser and post byline

    PHP post wordpress
    posted 8 years ago by psteinweber
  29. FAV Query any Post Type anywhere

    Query any Post Type anywhere
    PHP post query
    posted 8 years ago by zealmurapa
  30. FAV post thumbnail function and display as background if function exists

    post thumbnail function and display as background if function exists
    PHP post wordpress
    posted 8 years ago by zealmurapa
« Prev 1 2 3 4