Profile
Achievement
crypticsoft's Recent Snippets
- All /
« Prev 1 Next »
This shortcode was tested with The Events Calendar version 3.3.1
Usage: [upcoming_events limit="6"]
0
902
posted 10 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
1058
posted 10 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
1034
posted 12 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
998
posted 12 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
1042
posted 12 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
1039
posted 12 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
1061
posted 12 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
1164
posted 12 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
1066
posted 12 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
979
posted 12 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
988
posted 12 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
906
posted 13 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
1739
posted 13 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
1135
posted 13 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
1282
posted 13 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
1345
posted 13 years ago by crypticsoft
returns "City, State" if found otherwise defaults to "Hollywood, CA"
18
8281
posted 13 years ago by crypticsoft