Welcome To Snipplr
Everyone's Recent Snippets Tagged wordpress
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Sale Price/Variation custom
this code just work if all variation price is a same as product price
0
437
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
403
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
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
816
posted 14 years ago by cwulff
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
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
746
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
Execute this script to replace old links inside the content of Wordpress posts.
0
690
posted 14 years ago by jhonqwerty
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
Change to line in page template file to call a different sidebar.
0
769
posted 14 years ago by lromak