Put Microsoft Excel xlsx document

Your best bet will be using the Google Document Embedder plugin. It has sketchy support for the new X MS Office files, but will sometimes work. If not, you’ll need to re-save the file as the old XLS filetype.

How to increase excerpt length in wordpress? [duplicate]

function custom_excerpt_length( $length ) { return 20; } add_filter( ‘excerpt_length’, ‘custom_excerpt_length’, 999 ); Add above code to your functions.php, and set the value 999 to the desired length. Source: the_excerpt() — Codex

Trying to use wp_register_script/style and enqueu them from an array – getting an error [duplicate]

As the “Error Message” (which is in fact a “doing it wrong”-message) is telling you, you’re using the wrong hook: Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Just read about hooks, wrap your code in a callback and then register it properly on one of the … Read more

How to create shortcode of this PHP code

This should do it.. function future_posts_function($atts){ extract(shortcode_atts(array( ‘poststatus’ => ‘future’, ‘order’ => ‘DESC’, ‘showposts’ => 10, ), $atts)); $return_string = ‘<ul>’; query_posts(array(‘post_status’ => $poststatus, ‘order’ => $order, ‘showposts’ => $showposts)); if (have_posts()) : while (have_posts()) : the_post(); $return_string .= ‘<li>’.get_the_title().'</li>’; endwhile; endif; $return_string .= ‘</ul>’; wp_reset_query(); return $return_string; } add_shortcode(‘future_posts’, ‘future_posts_function’);