In this post I will discuss about the easiest way to use metabox ( any type of input field, like – text, checbox, radio, image-uploader etc ) with any type of wordpress posts ( like – page, post or custom post types).
I will use a great plugin, Meta Box, to achieve this moto, we can also call this plugin as a Framework. I named it a Framework because if we include this plugin in our wordpress installation then we can create and pull any type of inputs in our wordpress post types by just adding some minor codes in our theme’s functions.php file.
In jQuery, event.preventDefault() is used to prevent the default action or behavior of an event. . If this method is called, then the default action of the event will not be triggered. Like, if we apply this method on click event of an anchor tag, then browser will not follow the anchor link.
If you use ammap to display MAP in your web page without license, then by default it will display ‘tool by ammap.com’ in your page as a part of MAP. This may be a free license-agreement policy to keep this text link.
But if you wish, you can get rid off this text by editing source code of ‘ammap.js‘ file.
To retrieve GET/POST request data, Joomla! uses the getVar method of the JRequest class (JRequest::getVar()).
To get current page id (from URL, as GET request), we can simply use –
<?php $currentPageID = JRequest::getVar('id'); ?>
By default, tinyMCE editor does not support mathematical formula and equation writing. To have this functionality you need to use a third-party plugins, WIRIS
Just download a package of WIRIS editor from this URL for php platform.