Welcome To Snipplr


Everyone's Recent Snippets Tagged wordpress



1 ... 4 5 6 7 8 ... 47
This will show you what template you are currently viewing (index.php, page.php)
0 2086 posted 14 years ago by bitsculptor
This allows you to change the post updated message that wordpress automatically inserts.
0 3087 posted 14 years ago by bitsculptor
Función php para reemplazar palabras dentro de los post de WordPress.
0 1917 posted 14 years ago by maiden
This script downloads the latest version of WordPress to your site rather than having to use FTP.
1 1375 posted 14 years ago by nathan_roberts
Add HTTP Header to Wordpress (ex: Vary: User-Agent)
0 2585 posted 14 years ago by dataworx
Suppose you wanted to check if a user was viewing a singular post with the post type of testimonial. You can use the next code sample to perform this check.
0 2463 posted 14 years ago by i-am-andy
This PHP adds the style.css of the active Theme to the WordPress TinyMCE Post and Page editor.
0 2017 posted 14 years ago by ecksteing
Wordpress Custom Post Type, custom taxonomy and queries
0 2253 posted 14 years ago by SidFerreiraZ
Snippet to show a simple use of the transient API when querying posts.
0 2043 posted 14 years ago by Mat_
description from title, image size from function.php (add_image_size( 'descr', 278, 200, true );)
0 2173 posted 14 years ago by shin
Displaying your latest tweets is a good way to encourage people to follow you on Twitter. The most common place to display tweets is in the sidebar, although you can add them to any area of the website.
0 2173 posted 14 years ago by i-am-andy
second level of categories (when offset=-1 doesn't work, like for "get_category_link()"), pictures must be called exactly like category slug and placed to "catimg" folder. also i used "substr" for cut decription (314 symbols but you can change it). U...
0 1728 posted 14 years ago by shin
<?php>
1 1486 posted 14 years ago by Amistyle
Get Wordpress wp_get_archives for a specific category... by default it sghows all categorys
0 3838 posted 14 years ago by i-am-andy
Implementation of CSS3 Media Query
0 2168 posted 14 years ago by ecksteing
Place the function in your functions.php file of your theme... Then, simply call like this: wp_paginate('', 3); The first param is optional, the second dictates how many pages before and after the current page link will show...
0 1740 posted 14 years ago by thewickedchemist
CREATE A HEADER MINI-CART IN WP E-COMMERCE - Part 3
0 1997 posted 14 years ago by ecksteing
CREATE A HEADER MINI-CART IN WP E-COMMERCE - Part 2
0 2023 posted 14 years ago by ecksteing
CREATE A HEADER MINI-CART IN WP E-COMMERCE - Part 1
0 2239 posted 14 years ago by ecksteing
The awesome Geo Mashup Plugin for WordPress allows for auto-embedding a map showing the location of the Post, Page etc via Shortcode or adding a line of PHP into the Theme file/s. The code below, added as a Plugin, will make a map appear at the en...
0 3898 posted 14 years ago by ecksteing
//This will grab taxonomies three levels deep (parent, child, grandchild) and display them //in an accordion fashion. Parent is the header, then child with a checkbox, if checked, will //display grandchild taxonomies. //Uses jQuery Accordion (do...
0 1843 posted 14 years ago by dnnsldr
I needed away to redirect to a custom BP component upon login for users and this works great. Add this to your functions file. If you are the admin, it will redirect you to the wp-admin.
0 25546 posted 14 years ago by dnnsldr
Solución para DIVs que colapsan. Simplemente agrega la clase group al elemento que colapsa y se mostrará su tamaño.
0 1612 posted 14 years ago by hibam
Add this to functions.php to enable the page-child function is_tree
0 1657 posted 14 years ago by klagraff
This function, when placed in a theme's 'functions.php' file will insert a custom id attribute into the '<li>' elements generated by a 'wp_nav_menu' function based on the title of the element. It will make a WordPress page or category into a hyphen s...
0 2559 posted 14 years ago by SFLWebDev
Function to get wordpress post/page slug to be used on for custom class etc
0 2989 posted 14 years ago by Farhan
Load latest version of jQuery from Google Libraries API and de-register Wordpress version
0 2532 posted 14 years ago by i-am-andy
Adds an excerpt field to pages when editing. Goes in functions.php
1 1809 posted 14 years ago by klagraff
Insert this in functions.php to remove WordPress version from being output in the header source code
0 2915 posted 14 years ago by klagraff
1 ... 4 5 6 7 8 ... 47