crypticsoft


Member since 02/04/2011

Name: todd wilson

Location: phoenix, az

Website: http://toddwilson.icreativepro.com

18 snippets

3450 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 449 posted 8 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 589 posted 8 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 539 posted 10 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 506 posted 10 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 558 posted 10 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 540 posted 10 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 571 posted 10 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 657 posted 10 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 575 posted 10 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 548 posted 10 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 493 posted 10 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 482 posted 11 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 1068 posted 11 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 622 posted 11 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 740 posted 11 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 634 posted 11 years ago by crypticsoft
credit: http://www.west-wind.com/weblog/posts/519980.aspx
1 431 posted 11 years ago by crypticsoft
returns "City, State" if found otherwise defaults to "Hollywood, CA"
17 4555 posted 11 years ago by crypticsoft
« Prev 1 Next »