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 706 posted 14 years ago by fjarrett
0 2555 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 434 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 399 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 612 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 1075 posted 14 years ago by howardpanton
This strips out any html tags (like paragraph tags) from the excerpt in WordPress.
0 683 posted 14 years ago by nonsalant
put this code above the loop
0 488 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 813 posted 14 years ago by cwulff
0 784 posted 14 years ago by YourListing
Count commetns and return value into the post
0 1901 posted 14 years ago by howardpanton
Can now use the class as a styler
0 2452 posted 14 years ago by chendrix
Wordpress creates an anchor with a class .post-edit-link for styling
0 574 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 704 posted 14 years ago by krike
cause i'm so lazy
0 707 posted 14 years ago by Savio
0 761 posted 14 years ago by Savio
0 657 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 741 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 402 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