Code

How to use code shortcode:

  1. Click Shortcode button.
  2. Choose Code from the category.
  3. Choose the appropriate shortcode (syntax highlighter or WordPress shortcode.)
  4. Choose the code langsuage.
  5. Copy your code to the box.
  6. Click insert button.
  7. Done.

Example of php code.

array('videos', 'podcasts'), 
   'category_name' => 'Videos on Homepage', 
   'post_per_page' => 4,
   'order' => 'DESC',
   'orderby' => 'menu_order',
   );
  $loop = new WP_Query($args);

  // start loop for first set of videos
  while($loop->have_posts()) : $loop->the_post();
 

*Sample code from here.

Comments are closed