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 707 posted 14 years ago by fjarrett
0 2560 posted 14 years ago by Farhan
Snippet for adding to your functions.php file to enqueue jQuery.
1 661 posted 14 years ago by oriontimbers
Sale Price/Variation custom this code just work if all variation price is a same as product price
0 438 posted 14 years ago by haftim
Sale Price/Variation custom this code just work if all variation price is a same as product price
0 404 posted 14 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 615 posted 14 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 791 posted 14 years ago by johnnyrokkit
This will find the first image in post and return it as a thumbnail if it exists
0 1076 posted 14 years ago by howardpanton
This strips out any html tags (like paragraph tags) from the excerpt in WordPress.
0 684 posted 14 years ago by nonsalant
put this code above the loop
0 491 posted 14 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 817 posted 14 years ago by cwulff
0 784 posted 14 years ago by YourListing
Count commetns and return value into the post
0 1905 posted 14 years ago by howardpanton
Can now use the class as a styler
0 2460 posted 14 years ago by chendrix
Wordpress creates an anchor with a class .post-edit-link for styling
0 575 posted 14 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 706 posted 14 years ago by krike
cause i'm so lazy
0 708 posted 14 years ago by Savio
0 766 posted 14 years ago by Savio
0 658 posted 14 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 747 posted 14 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 405 posted 14 years ago by ipublicis
A simple set of conditions to get dynamic title tags in a wordpress template.
0 696 posted 14 years ago by jhonqwerty
Edit widget or display current category in sidebar.php
1 827 posted 14 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 722 posted 14 years ago by jhonqwerty
1 ... 24 25 26 27 28 ... 42