Articles Tagged 'WordPress'
Poll: Paid CMS Software
Bachi beginning of the year: WordPress and WPML get_page_by_path update ()
The year 2012 began with a few hours of deep-debugging because of two (known) bugs quite annoying. , con la globale (e famosa) omonima istanza $wpdb . The first, among other things, rather dated, present in the core of WordPress regarding the method update() class wpdb , with the global (and famous) instance of the same name $wpdb . The defect appears when you try to update a field to NULL . Despite numerous complaints, the WordPress development team does not seem to find a solution to the annoying problem. In fact, to date, the only solution is to write the SQL for your account.
WordPress 3.3: now all jQuery
With WordPress 3.3 also jQuery and all its modules have been aligned. Now it is possible to access the new list of the modules of the latest release 3.3, such as the autocomplete. Here is a snippet for a good inclusion:
1 2 3 4 5 6 | / / Load modules that WordPress for us preparatory to the script "MyScript.js" array ( 'jquery-ui-slider' , $ Deps = array ('jquery-ui-slider', 'Jquery-ui-datepicker', 'Jquery-ui-autocomplete' ); , 'js/myscript.js' , $deps , 1 . 3 . 4 , true ) ; wp_enqueue_script ('key', 'js / MyScript.js', $ deps, 1 3.. 4, true); |
WordPress Snippet: add styles and scripts to Custom Post Type
Now that WordPress allows you to create types of custom post (CPT), it becomes useful to be able to add our styles and our script when you view or edit our posts. The best way to do that is compatible with release 3.3 is the following:
1 2 3 4 5 6 7 | , function ( ) { add_action ('admin_enqueue_scripts', function () { ; global $ typenow; $typenow == 'id_custom_post' ) { if ($ typenow == 'id_custom_post') { , 'css/customstyle.css' ) ; wp_enqueue_style ('key_style', 'css / customstyle.css'); , 'js/customscript.js' ) ; wp_enqueue_script ('key_script', 'js / customscript.js'); } }); |
Very short snippet: set the log files on WordPress
si attivano i log a video prodotti da PHP, riempiendo lo schermo di Notice, Warning e quant'altro. By setting the file wp-config.php define the define('WP_DEBUG', true); logs are activated by PHP-screen products, filling the screen, Notice, Warning, and more. If controls for "flying" this can be useful in situations of exercise is highly recommended, for obvious reasons. Luckily, WordPress allows her to "convey" these logs to a file, which by default is placed in /wp-content/debug.log .
WordPress shortcode Table
Let me demonstrate how to use the shortcode - indented (nested) - WordPress to create tables to insert into posts and pages. For example, I will show you how to create comparative charts, those used to compare the particularities of applications or products, such as:

WordPress Snippet: Remove the admin bar
The latest version of WordPress has added a new toolbar frontend side when the administrator is logged. If you want to disable this code included in the file functions.php of your theme:
1 2 3 4 | / / Check to see if the filter show_admin_bar has_filter ( 'show_admin_bar' ) ) { if (has_filter ('show_admin_bar')) { , '__return_false' ) ; add_filter ('show_admin_bar', '__return_false'); } |
PhpStorm 2.0
PHP IDE dedicated to the development there are many, ranging from free to paid ones. For a long time I have used tools such as Eclipse or Aptana , coming to make use of specialized editors to HTML / JavaScript and - even - CSS. For a year now, however, I think I found a complete environment that finality, at least in my case, it solves all my problems: PhpStorm .
WordPress: retrieve the contents of private pages
Allocation from the post WordPress: retrieve the contents of a page to add some information. First of all, you can retrieve the contents of a page using a function like this:
1 2 3 4 | $slug ) { getPageBySlug function ($ slug) { get_page_by_path ( $slug ) ; ObjectPost get_page_by_path = $ ($ slug); "the_content" , $objectPost -> post_content ) ; return apply_filters ('the_content', $ objectPost -> post_content); } |
WP 2.7 Bannerize
New major upgrade to WP Bannerize , now in release 2.7. Excluding any bug fixes, I think this will be the last release that will make in 2010! We define an early Christmas present. This latest version introduces a lot of requests (such as impressions or scheduling by date) reported by users and the full list you can read it in detail here .







Latest Comments
datrix : Thank you very much!
Robert : I rispsoto your questions with pleasure. The idea is really great. I am looking for a solution ...
Sting : @ Darius - you can see an example here: http://www.fight4fun.it/ clicking on: MAPS I hope ...
vik : Giustappunto I'm working on a project and the client asked me to show all the news (which are CPT) in ...
Giovambattista Fazioli : @ paso: absolutely. Simply identifying the field [cci] input [/ cci] you want to ...