Changeset 5765 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/content-command.php
- Timestamp:
- 08/07/2017 07:47:22 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/content-command.php
r5763 r5765 17 17 ) ); 18 18 ?> 19 <?php20 $children = get_children( array(21 'post_parent' => get_the_ID(),22 'post_type' => 'command',23 'posts_per_page' => 250,24 'orderby' => 'title',25 'order' => 'ASC',26 ) );27 if ( $children ) : ?>28 <h3>SUBCOMMANDS</h3>29 <table>30 <thead>31 <tr>32 <th>Name</th>33 <th>Description</th>34 </tr>35 </thead>36 <tbody>37 <?php foreach( $children as $child ) : ?>38 <tr>39 <td><a href="<?php echo apply_filters( 'the_permalink', get_permalink( $child->ID ) ); ?>"><?php echo apply_filters( 'the_title', $child->post_title ); ?></a></td>40 <td><?php echo apply_filters( 'the_excerpt', $child->post_excerpt ); ?></td>41 </tr>42 <?php endforeach; ?>43 </tbody>44 </table>45 <?php endif; ?>46 19 </div><!-- .entry-content --> 47 20
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)