Home User profile
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
SerenityStore
tagDiv Member

I’ve resolved in this way:
On Newspaper/includes/modules/td-module_numberofyourmodule.php
i’ve added this:


<div class="td-module-meta-info">
<?php if (td_util::get_option('tds_category_module_11') == 'yes') { 
$postid = get_the_ID();                  
$post_categories = wp_get_post_categories( $postid );
$cats = array();
foreach($post_categories as $c){
  $cat = get_category($c);
  $cats[] = array( 'name' => $cat->name, 'slug' => $cat->slug);
  $catid=get_cat_ID($cat->name);
  $category_link = get_category_link($catid);
  echo "<a>$cat->name</a>";} ?>
<?php echo $this->get_author();?>
<?php echo $this->get_date();?>
<?php echo $this->get_comments();                    
/* echo $this->get_category();*/ } ?>
</div>

Istead of:


<div class="td-module-meta-info">
                    <?php if (td_util::get_option('tds_category_module_11') == 'yes') { echo $this->get_category(); }?>
                    <?php echo $this->get_author();?>
                    <?php echo $this->get_date();?>
                    <?php echo $this->get_comments();?>
                </div>

Please, tell me if this can cause any problems on template, and if there is a way to set this for all modules without modifying all the module files.
Thanks.

Gabriele.

Viewing 1 post (of 1 total)