Welcome To Snipplr


Everyone's Recent Snippets Tagged post



« Prev 1 2 3 4 5
  1. FAV

    Post Data to iFrame with HTML Only

    To send data into iFrame you don't need JavaScript or anything. You just have the form's target attribute match the iframe's name attribute. The outer page doesn't even reload. Copy this code and test it.
    HTML 9 views posted 2 years ago by apphp-snippets
  2. FAV

    C++ SMS source code on how to send SMS text messages using HTTP

    Hey Guys, This is a short and straightforward article (or let’s say „tip” or „mini-review”) that presents how to send SMS messages from your own C++ (Cpp / C plus plus) application through HTTP. You will see, it is gonna be really easy....
    C++ 7 views posted 5 years ago by Gupta86
  3. 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 5 views posted 6 years ago by jonasethomsen
  4. FAV

    Post form by AJAX and jQuery

    This code shows how we post HTML form by AJAX and jQuery.
    jQuery 12 views posted 6 years ago by khaled__mahmoud
  5. 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 saved by 3 people 5 views posted 6 years ago by rickahontas
  6. 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 12 views posted 6 years ago by apphp-snippets
  7. FAV

    Custom columns for wordpress custom post type

    This adds custom columns to a custom post type
    PHP 5 views posted 7 years ago by bitsculptor
  8. 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 3 views posted 7 years ago by apphp-snippets
  9. 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 1 views posted 7 years ago by AndrewThinkUp
  10. 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 12 views posted 7 years ago by halk
  11. FAV

    Custom Post Type with a Metabox field

    Does not work at the moment. So don't copy it.
    PHP 4 views posted 7 years ago by eridesigns
  12. 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 9 views posted 7 years ago by bitsculptor
  13. FAV

    custom post type custom update message

    This allows you to change the post updated message that wordpress automatically inserts.
    PHP 4 views posted 7 years ago by bitsculptor
  14. FAV

    POST form with jQuery (Ajax)

    This send any value via POST to a PHP page. It is done with AJAX, so the POST return can be used on the same page as the submit
    JavaScript 21 views posted 7 years ago by rickygri
  15. FAV

    POST form with javascript (Non-Ajax)

    This javascript function takes the URL of the target page and an associative array of name/values paires and POSTs the data to the supplied URL by dynamically creating a form and then submitting it.
    JavaScript 13 views posted 7 years ago by rickygri
  16. FAV

    List Custom Post Type anywhere

    Useful for adding Custom Post types to navigation this will list all custom post type posts
    PHP saved by 2 people 7 views posted 7 years ago by i-am-andy
  17. 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 8 views posted 7 years ago by crypticsoft
  18. 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 3 views posted 7 years ago by crypticsoft
  19. 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 10 views posted 8 years ago by nerdsane
  20. FAV

    Simple Facebook Using GraphAPI_Web.Swc In As3

    a handy class to manage facebook connections using as3
    ActionScript 3 18 views posted 8 years ago by Matias
  21. FAV

    get GET and POST variables in javascript

    Usually when working with form you use a server to handle it, and if your doing it entirely in javascript no reload is required, but what if you wanted to take the information and use it in a javascript on another page, completely client side. I had...
    JavaScript 10 views posted 8 years ago by FatFolderDesigner
  22. FAV

    Top Posts: Custom Post Type/Taxonomy by Comment Count

    WordPress top posts: custom post type / taxonomy Ordered by comment count
    PHP 16 views posted 8 years ago by lswilson
  23. FAV

    Wordpress register Custom Post Type and Custom Taxonomy

    Register a Custom Post Type and a Custom Taxonomy in Wordpress
    PHP 5 views posted 8 years ago by i-am-andy
  24. FAV

    get Custom post page name

    Custom post page name
    PHP 5 views posted 8 years ago by hernanvionnet
  25. FAV

    Wordpress if statement - custom post type

    PHP 7 views posted 8 years ago by verticalgrain
  26. FAV

    Wordpress register custom post type

    PHP 8 views posted 8 years ago by maxxscho
  27. FAV

    Custom post type tags/categories archive page

    add this in functions.php
    PHP 2 views posted 8 years ago by IronMANro
  28. FAV

    Wordpress permalinks for custom post types (not working)

    For some unknown reason this causes my single custom post type pages to display the home page.
    PHP 0 views posted 8 years ago by ssmilwaukee
  29. FAV

    Get Posts from Custom Post Type

    Get posts from a Custom Post Type
    PHP 3 views posted 8 years ago by i-am-andy
  30. FAV

    Wordpress - Multiple Post Types in Loop

    add this to functions.php and you won't have to mess with the index page.
    PHP 3 views posted 8 years ago by cpres
« Prev 1 2 3 4 5