add initial codes.
This commit is contained in:
19
module_loop_post.php
Normal file
19
module_loop_post.php
Normal file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
$postType = get_post_type();
|
||||
if ($postType == 'post') {
|
||||
$taxonomySlug = 'category';
|
||||
} else {
|
||||
$taxonomies = get_the_taxonomies();
|
||||
if ($taxonomies) {
|
||||
foreach ( $taxonomies as $taxonomySlug => $taxonomy ) {}
|
||||
} else {
|
||||
$taxonomySlug = '';
|
||||
}
|
||||
}
|
||||
$taxo_catelist = get_the_term_list( $post->ID, $taxonomySlug, ' ','','');
|
||||
?>
|
||||
<li id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||
<span class="infoDate"><?php echo esc_html( get_the_date() ); ?></span>
|
||||
<?php if ( is_user_logged_in() == TRUE ) : edit_post_link(__('Edit', 'bizvektor-global-edition'), '<span class="edit-link edit-item">[ ', ' ]</span>');endif ?>
|
||||
<span class="infoTxt"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></span>
|
||||
</li>
|
Reference in New Issue
Block a user