crypticsoft


Member since 2011

18 snippets

20047 profile views

4 Comment(s) Posted

View their favorites

Profile

Achievement

first submission:submitting first snipplet popular snippet:having a snipplet with 20 favorites

crypticsoft's Recent Snippets



« Prev 1 Next »
This shortcode was tested with The Events Calendar version 3.3.1 Usage: [upcoming_events limit="6"]
0 2069 posted 12 years ago by crypticsoft
While the Pinnacle Cart API can handle some of this, I found it easier to query the database directly. This PCProduct class was developed for integrating Pinnacle Cart with WordPress with the following methods: - get_product($id) - get_product_by...
1 2311 posted 12 years ago by crypticsoft
This is a useful class which utilizes Phil Sturgeon's helpful restclient (http://getsparks.org/packages/restclient/versions/HEAD/show). Reference the URL attached for PinnacleCart API docs. Example request URLs to get products and categories: #...
0 2258 posted 14 years ago by crypticsoft
I need this function all too often and figured I'd share it. Limit the_content() by word limit by using built in WordPress functions.
0 3310 posted 14 years ago by crypticsoft
Here is a quick example on how to generate your own portfolio with filtering based on a taxonomy (in this case 'Solutions').
0 2206 posted 14 years ago by crypticsoft
Note: This also uses a flat file to cache the results, be sure to also upload the 'rss_cache.txt' file. Usage: <?php>
0 2168 posted 14 years ago by crypticsoft
Include twitter bootstrap, as of this writing is at v2.0.4 and the following JS / html to your page and also uses Glyphicons.
0 2448 posted 14 years ago by crypticsoft
For when you really just need a short description field along with a title for your slideshows. Just drop this into the functions.php and meteor-slideshow.php in the theme folder.
0 2657 posted 14 years ago by crypticsoft
For those cases where you want to code in PHP but need to deploy to ASP. It doesn't account for php logic but only converts the php include() statements into SSI includes. Could be useful for converting basic websites from php to asp, rare but it hap...
0 3292 posted 14 years ago by crypticsoft
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 3208 posted 14 years ago by crypticsoft
When you create a custom post type and need to query by ID then you can pass in the 'field' and the 'terms' with the ID for that post type.
0 2243 posted 14 years ago by crypticsoft
Basically, if the value has already been requested once before it's returned immediately from the cache. Otherwise, an AJAX request fetches the data and adds it to the cache. The $.when/.then doesn't care about any of this; all you need to be concern...
0 2972 posted 15 years ago by crypticsoft
* Set your local path to the wordpress install, in my case was: "/blog/feed" * Edit the var contain = make it set to the selector, in my case I'm populated a list tag <ul></ul>. * Edit the var limit = 5; Set the amount of blog posts you want to dis...
1 3244 posted 15 years ago by crypticsoft
Note: replace "USERNAME" with your own twitter username. This is using cycle plugin with easing which is applied after the tweets are populated.
1 2460 posted 15 years ago by crypticsoft
The code references a custom post type (mysite_listings) and adds custom columns for editing the listings in the admin. This adds custom fields onto the edit / list views. Note: You will want to change instances of "mysite_listings" with your own...
1 2716 posted 15 years ago by crypticsoft
Example shows how to register post types for : * Listings (defined as 'mysite_listings' with the rewrite slug 'lookup') * Then registers the 'usa_states' taxonomy to the mysite_listings post type.
0 2397 posted 15 years ago by crypticsoft
credit: http://www.west-wind.com/weblog/posts/519980.aspx
1 1920 posted 15 years ago by crypticsoft
returns "City, State" if found otherwise defaults to "Hollywood, CA"
18 15400 posted 15 years ago by crypticsoft
« Prev 1 Next »