Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged wordpress



1 ... 24 25 26 27 28 ... 42
Simply replace 'Page Title' with your desired page title to automatically create the page when your theme is activated. Thanks to MattStrange for the original concept.
1 1466 posted 15 years ago by fjarrett
0 3738 posted 15 years ago by Farhan
Snippet for adding to your functions.php file to enqueue jQuery.
1 1437 posted 15 years ago by oriontimbers
Sale Price/Variation custom this code just work if all variation price is a same as product price
0 923 posted 15 years ago by haftim
Sale Price/Variation custom this code just work if all variation price is a same as product price
0 884 posted 15 years ago by haftim
You may want to create navigation where the children are displayed only when the parent page is the current page. Place the code in your functions.php file
0 1274 posted 15 years ago by awesomewordpressthemes
How to enable Custom Navigation Menus in WordPress 3.0 Like the custom background, header image, and post thumbnails, the custom navigation menus also needs to be enabled through your theme’s functions.php file.
0 1728 posted 15 years ago by johnnyrokkit
This will find the first image in post and return it as a thumbnail if it exists
0 2145 posted 15 years ago by howardpanton
This strips out any html tags (like paragraph tags) from the excerpt in WordPress.
0 1310 posted 15 years ago by nonsalant
put this code above the loop
0 1125 posted 15 years ago by Token
From CSS-Tricks: Shortcodes in WordPress are bits of text you can use in the content area to invoke some kind of function to accomplish certain tasks. For example, video embedding in WP 2.9+ uses the [video] [/video] shortcode. You can write your own...
2 1869 posted 15 years ago by cwulff
0 1534 posted 15 years ago by YourListing
Count commetns and return value into the post
0 3091 posted 15 years ago by howardpanton
Can now use the class as a styler
0 4212 posted 15 years ago by chendrix
Wordpress creates an anchor with a class .post-edit-link for styling
0 1248 posted 15 years ago by chendrix
This function will return the correct url for the timthumb php script (wordpress 3.0 or higher required!) Usage: just call the function in your theme with the post id as parameter, it will return a value so store this into a variable (must be ins...
0 1403 posted 15 years ago by krike
cause i'm so lazy
0 1515 posted 15 years ago by Savio
0 1521 posted 15 years ago by Savio
0 1370 posted 15 years ago by athanassiadis
Open your search.php file and find the the_title() function. Replace it with the following: 1.echo $title; Save the search.php file and open style.css. Append the following line to it: strong.search-excerpt { background: yellow; }
0 1422 posted 15 years ago by newsok
I need to create a new template that just show the photo ordered by «department» and «title». It should also include an hidden <DIV> with full name, email, social links and bio.
0 864 posted 15 years ago by ipublicis
A simple set of conditions to get dynamic title tags in a wordpress template.
0 1297 posted 15 years ago by jhonqwerty
Edit widget or display current category in sidebar.php
1 1530 posted 15 years ago by lromak
Mostrar un link a una subcategoría, dependiendo de la categoría superior. category_parent es igual al id de la categoría superior. Sirve sólo cuando el post tiene una categoría hija de la categoría superior.
0 1565 posted 15 years ago by jhonqwerty
1 ... 24 25 26 27 28 ... 42