Member since 04/12/2009

8 snippets

10 profile views

2 Comment(s) Posted

View their favorites


All time reputation: 26


first submission:submitting first snipplet

hussong's Recent Snippets

« Prev 1 Next »
  1. FAV

    WordPress Parent Page with Child Page Excerpts

    Snippet for a parent page to list child pages with excerpts.
    PHP 12 views posted 4 years ago hussong
  2. FAV

    Custom sorting for previous/next post links

    Custom sorting for events based on a custom field needs to be added to navigation-links.php requires plugin:
    PHP 4 views posted 9 years ago hussong
  3. FAV

    WordPress: delete enclosures of media files in feeds

    PHP 6 views posted 9 years ago hussong
  4. FAV

    Append more link to ALL excerpts

    Appends a custom more-link to all excerpts, regardless of whether they're auto-generated or pulling manual excerpts from the excerpt field. Note: Automatic excerpts still show the default […] at the end (before the more-link). Found here: http:/...
    PHP saved by 4 people 3 views posted 9 years ago hussong
  5. FAV

    Add excerpts to pages

    Adds support for excerpts in WordPress pages. Great for using WordPress as a CMS. A text field appears in the admin panel and you can pull the excerpt from your template files (for teaser texts etc.)
    PHP 3 views posted 9 years ago hussong
  6. FAV

    List upcoming Events in Sidebar via PHP Code Widget

    Gets the date, pulls a list of upcoming events (posts from cat 6) and sorts by custom field \\\"event_date\\\" . Add to sidebar via [PHP Code Widget](
    PHP 7 views posted 9 years ago hussong
  7. FAV

    Custom filtering and sorting for events via functions.php

    Uses action hook of the hybrid theme framework to launch function that modifies the query on the archive page for category 6.\\r\\n\\r\\nSorts by the custom field \\\"event_date\\\" and compares it to the current date.\\r\\n\\r\\nBased on [goto11\\\'...
    PHP 3 views posted 9 years ago hussong
  8. FAV

    Wordpress: Sort Order by Custom Field for specific Category

    Put this before the loop in archive.php to have posts in the archive for category '26' sorted by custom field 'date'. Assign sortable values like '090501' or '2009-05-01' to those fields when editing posts and your Upcoming Events will be sorted by...
    PHP saved by 200 people 39 views posted 10 years ago hussong
« Prev 1 Next »