Category Archives: WP_Query

– Welcome –

Welcome to WordPress-Saratoga

  • Attendance: / Sign-in Sheet / password
  • Survey 1: Macintosh, Windows, Linux?
  • Survey 2: Freelance, Startup Team Member, Corporate Employee?
  • Survey 3: Beginner, Intermediate, Advanced User?
  • Fundamentals
    • Blogging
      • Write & post, categorize & tag; fresh content, from time to time.
      • Content consists of text, photos, and/or audio/visual media.
      • Accept comments from visitors.
    • WordPress.com
      • Free Hosted Service, Themes, and Widgets (limited)
      • Optimized Resource Utilization, Load Balancing
      • Automatic Version Updating
    • WordPress.org
      • Host a CMS* website on server of own choosing.
      • Unlimited Customization, Access to Code
      • Maintenance is your own Responsibility!
  • This Month’s Question?
  • Introduce Yourself
    • Name, Title, and Background
    • Tell us about your experience with WordPress so far.
    • Where do you plan to go with WordPress?
  • Next Month’s Topic?
  • Other Meetup Groups¬†

 <- Twitter Site

* Content Management System (CMS) is a computer program that allows publishing, editing and modifying content on a website as well as maintenance from a central interface. Such systems provide procedures to manage workflow in a collaborative environment.


Coding Format – Banner Ratlif Style – The closing control is indented as the last item in the list, and thus properly loses salience. This makes visual scanning easier since the headers of any block are the only thing exdented at that level so that the closing control of the prior block does not interfere with the visual flow of the next block header.


8. Status Parameters

 

any, auto-draft, draft, exclude_from_search, future, inherit, pending, private, publish, trash

codex.wordpress.org/Class_Reference/WP_Query

<?php
$args = array( 
 'order' => 'asc',
 'orderby' => 'title',
 'post_type' => 'post',
 'post_status' => 'publish',
 'posts_per_page' => 1,
 );

get_header();

$theObject = new WP_Query( $args );
while ( $theObject->have_posts() ) : 
 $theObject->the_post();
 the_author();
 the_category();
 the_content();
 the_excerpt();
 the_ID();
 the_tags();
 the_time(); echo " - ";
 the_title(); 
 echo '<hr /><hr />';
endwhile;

get_sidebar();
get_footer(); 
?>