Welcome To Snipplr
Everyone's Recent PHP Snippets Tagged wordpress
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
This code allows the upload of files with extensions usually forbidden in wordpress
0
669
posted 12 years ago by scienzedellevanghe
Adding a file named "template-homepage.php" and adding this code inside it should essentially create a page template named "Scrolling Homepage" to your theme, which is useful in some customized landing page situations where you want another page as t...
0
624
posted 12 years ago by Makedesign
Sometimes you just want a random link to display and outside of the default format, this works perfectly and removes all default html (list items / headings).
0
984
posted 12 years ago by crypticsoft
This needs to be run on an action, or at least I wanted able to get it to run outside of an action, I suggest template_redirect. More information at the link.
0
849
posted 12 years ago by FatFolderDesigner
Displays latest posts by current author (place it within the loop). Adapted from code from [here](http://www.wpbeginner.com/wp-tutorials/how-to-display-related-posts-by-same-author-in-wordpress/) and a tutorial [here](http://www.makeuseof.com/tag/how...
0
963
posted 12 years ago by certainlyakey
bloginfo('name') is a function that generates the name of a WordPress site, the one used in the installation of WordPress and inserted in the Blog Name field under General Settings.
0
399
posted 12 years ago by treociti
This snippet will exclude the featured image from the attached images (gallery)
0
700
posted 12 years ago by nerdsane