Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged wordpress



https://www.chrisjmendez.com/2014/09/19/wordpress-replace-a-themes-google-font-with-your-own/
0 1727 posted 11 years ago by chrisaiv
enter the full name you want displayed alongside the email address
0 1761 posted 11 years ago by chrisaiv
https://www.chrisjmendez.com/2014/09/08/wordpress-clean-up-dashboard-meta-boxes/
0 1548 posted 11 years ago by chrisaiv
https://www.chrisjmendez.com/2014/09/13/wordpress-remove-header-junk-from-default-wordpress-install/
0 1711 posted 11 years ago by chrisaiv
Disallow HTML in WordPress comments, add this snippet to your functions.php file.
0 1606 posted 11 years ago by chrisaiv
You might also consider just installing this Wordpress plug-in. It's way easier https://wordpress.org/plugins/google-typography/
0 1685 posted 11 years ago by chrisaiv
Add Login / Logout to your WordPress Menu. You must have UserPro
0 1626 posted 11 years ago by chrisaiv
If you make a lot of edits, eventually the revisions will start to bother you or bog down your database. Heres how you can put a cap on the number of recorded revisions.
0 1535 posted 11 years ago by chrisaiv
Checks if a particular user has a role.
0 1744 posted 11 years ago by chrisaiv
It's probably not a good idea to always use this trick but if you need to, you'll be glad you bookmarked this script.
0 1544 posted 11 years ago by chrisaiv
Insert a favicon using functions.php
0 1433 posted 11 years ago by chrisaiv
One thing that can go wrong in WordPress magazine themes is when users include too many words before the more tag.
0 1502 posted 11 years ago by chrisaiv
Add the code below to change the Home & Site URL that is configured in the database (wp-options table) by WordPress. Whenever you copy/move a site to a new hosting and the URL has changed you can use the code below to fix any strange redirects that m...
0 1821 posted 11 years ago by 108Bits
Simply paste the following snippet of code into your theme's functions.php file and adjust the CSS on line 4 as needed.
0 1746 posted 11 years ago by chrisaiv
Thanks to Tom McFarlin for this. http://tommcfarlin.com/wordpress-post-exists-by-id/#more-30264
1 2688 posted 11 years ago by adambundy
Remove Wordpress empty paragraphs form the_content() function.
0 3551 posted 11 years ago by razvanstavila
Add custom header style for Admin
0 1604 posted 11 years ago by razvanstavila
Add a css file to style the visual editor to resemble the theme style.
1 2714 posted 11 years ago by razvanstavila
Add page name slug to Wordpress body class array.
0 2693 posted 11 years ago by razvanstavila
Add Google Lato Font link from Google Fonts to your website. It will add to your admin area also.
0 1617 posted 11 years ago by razvanstavila
Generate The Tiny URL to add to any post
0 1418 posted 11 years ago by daprela
FME has designed efficient Canvas Drawing Plugin for WordPress that enables users to draw canvas online on separate paint book by utilizing basic drawing tools like brush, pencil, etc. This WordPress Plugin will create two additional pages on your we...
0 1494 posted 11 years ago by alastarmason1
A custom widget area for wordpress.
1 1578 posted 11 years ago by JamesAbels
Divide wordpress posts from one category into two columns.
1 1645 posted 11 years ago by fedek6
This snippet shows you how to get previous and next post in category URL.
0 2704 posted 11 years ago by fedek6
Additional option for Wordpress post (year in this case). You can get it's content in template file by: `<?php>ID, 'year', true ); ?>`
1 1299 posted 11 years ago by fedek6
This is template for adding custom settings in Wordpress (using settings API).
1 1456 posted 11 years ago by fedek6
#Wordpress Debug Info ##Find out basic information about your WordPress installation and server environment
2 1225 posted 12 years ago by gregdbarnes
add to functions.php
1 1317 posted 12 years ago by gabbo
This uses the timthumb script saved as sized.php in the theme directory
1 1702 posted 12 years ago by bitsculptor