News Feed
Jobs Feed
Sections




News Archive
feed this:

Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHPMaster.com:
Master Dynamic Content with WordPress Shortcodes
July 09, 2012 @ 11:47:13

On PHPMaster.com today there's a new tutorial for the WordPress users out there looking to work with dynamic content and shortcodes to make your site easier to use and to bring more content to user's attention.

The advantages to using shortcodes are obvious. First and foremost, it allows page designs to become far more unique. It also relieves the website administrator from having to create a large list of custom fields in order to perform basic content insertion. [...] And, finally, shortcodes allow a design to come alive and be truly dynamic and interesting to the end user. Too many WordPress blogs and magazine websites have adhered to the format of a big title, a standard block of text, and comments. That no longer has to be case.

They talk about using the "functions.php" file for the custom functionality, who to use them in your posts and how to use them in the theme-specific instances. Using the "add_shortcode" you can relate these custom functions to their codes for both simple and more advanced calls (code included).

0 comments voice your opinion now!
wordpress dynamic content shortcode


SitePoint PHP Blog:
How to Create Your Own WordPress Shortcodes
November 11, 2010 @ 08:26:36

On the SitePoint PHP blog today there's a new post showing how how to make your own "short code" system that allows for custom function execution.

WordPress doesn't normally allow you to add PHP code to pages or posts. That's for the best: you don't want clients to discover the power of the unlink function! However, you can create custom functions which are executed when a shortcode is encountered within the post text.

There's two code snippets included - one showing a simple function call, "Hello World" style, and another version that lets you define parameters to feed into the method. There's also a simple example of how you could allow them to include CSS styling into the code example too.

1 comment voice your opinion now!
wordpress shortcode tutorial function callback



Community Events











Don't see your event here?
Let us know!


unittest framework package release introduction podcast composer language application component security hack symfony2 hhvm opinion install example facebook overview code

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework