Before i forget, an easy way to test if you can connect to an external api is to use CURL on the command line. This nice as a sanity check/proof of concept to ensure you have the right token, proper field mappings, submitting the right data. This saves you from setting up a test form, [...]
In PHP, arrays are often used to pass parameters to functions so we don’t have to worry about the order or number of params. But there’s a simpler way to pass a series of key=>value pairs without typing out the structure of an array each time: use a query string.
Often the websites I build for clients include rounded corners in the design. The border-radius property introduced by CSS3 and supported by most browsers except IE6-8, makes it easy to implement rounded corners.
I’m working on a WordPress project which uses David Benini’s “Events Manager” plugin. The events manager plugin does not use WordPress’ posts for Events. Instead it creates an page with the title “Events”, whose URL would be http://yourdomain.com/events. The content rendered on this page varies. The plugin uses the query string to fetch a single event [...]
For navigating to older and newer posts from a single post page, WordPress gives us some useful functions like previous_post_link() and next_post_link(). Those are easily confused with the similar looking functions, previous_posts_link() and next_posts_link(), used for navigating between pages listing multiple posts, in a category for example. WordPress gives us the category structure. We can use categories and permalinks [...]
Content © professional dilettante
Proudly powered by WordPress
Theme designed by Artisan Themes
20 queries.
0.555 seconds.