Building a WordPress App

I’m curious how/where you got the impression that desktop apps are more secure than the WP admin. For better security, you can enable SSL for the normal WP admin web interface, by adding this line to wp-config.php: define(‘FORCE_SSL_ADMIN’, true); More info here: http://codex.wordpress.org/Administration_Over_SSL

Redirect to another page using contact form 7? [closed]

Redirect to another page using contact form 7? [closed]

Shortcode returns values in the wrong order

it is b/c wp_list_pages ECHOES by default. so it echoes before your return happens. wherever you are defining your $args, set ‘echo’ => FALSE, see http://codex.wordpress.org/Function_Reference/wp_list_pages

wordpress wp_enqueue_script() not working

You need to be hooking the function that calls the enqueue, personally I actually like to register scripts and enqueue them separately, rather than just enqueueing them, as it allows the flexibilty to enqueue conditionally and can save keystrokes down the line at little to no performance penalty. The code you are going to need … Read more

Show a different code on front page to other pages

You can use the wordpress template hierarchy to do just that. Specifically, you can put the code you want in front-page.php and then use index.php for the rest of them, though that’s a rather bland way of doing design with what you have on your hands. Alternately, there are the wordpress conditional tags which can … Read more

How do I Import / Upload Files with jQuery AJAX?

I haven’t tried but i think you need to add FormData object directly as data parameter. Something like this var ajaxData = new FormData(); ajaxData.append( ‘action’, ‘ajax_handler_import’ ); ajaxData.append( ‘_ajax_nonce’, importNonce ); // or maybe skip the nonce for now jQuery.each($(‘#fileImportData’)[0].files, function(i, file) { ajaxData.append(‘file-‘+i, file); }); The rest of your code goes as it … Read more

Specifying Mouseover Icon for Custom Post

This is more of a CSS question. However, if you create your icon as CSS sprite, you just shift between versions of it in your CSS. Something like: #toplevel_page_my_item .wp-menu-image { background: url(‘images/sprite.png’) no-repeat 0 8px !important; } #toplevel_page_my_item:hover .wp-menu-image, #toplevel_my_item.wp-has-current-submenu .wp-menu-image { background-position: 0 -24px !important; }

Exclude category

To exclude a category, you need to know its ID. You can then exclude it like this (please not the minus before the ID): $args = array( ‘posts_per_page’ => 4, ‘cat’ => -the_category_id_to_put_in); The WP Query class reference has more information if you need it: http://codex.wordpress.org/Class_Reference/WP_Query#Category_Parameters