Mình có vào các td_module của themes newspaper để thêm cái nút xem thêm cho danh sách bài viết của các modules trên tagdiv td ý mọi người, mình không biết code thêm vào như thế nào? bạn nào có cái code nút read more không cho mình xin với. Mình có xem code ở bên trên nó lấy cái excerpt, mình có chế lại cái get_reamore hay get_the_permalink mà đều bị lỗi. Bạn nào biết giúp mình với Code mình thử chỉnh sửa. Mã: <?php echo $this->get_excerpt($excerpt_length); ?> Tùy biến lại <?php echo $this->get_redmore(); ?> Toàn bộ code nó như sau: Mã: <div class="<?php echo $this->get_module_classes();?>"> <div class="td-module-image"> <?php echo $this->get_image('td_324x235'); ?> <?php if (td_util::get_option('tds_category_module_4') == 'yes') { echo $this->get_category(); }?> </div> <?php echo $this->get_title($title_length); ?> <div class="td-excerpt"> <?php echo $this->get_excerpt($excerpt_length); ?> </div> <div class="read-more"> <a href="..Gọi nó ra như thế nào để lấy permalink "><?php echo __td('Read more', TD_THEME_NAME);?></a> </div> <?php echo $this->get_quotes_on_blocks();?> </div>
Bạn thêm code như dưới nhé, bằng cách lấy url nó ra bằng: echo $this->href HTML: <div class="<?php echo $this->get_module_classes();?>"> <div class="td-module-image"> <?php echo $this->get_image('td_324x235'); ?> <?php if (td_util::get_option('tds_category_module_4') == 'yes') { echo $this->get_category(); }?> </div> <?php echo $this->get_title($title_length); ?> <div class="td-excerpt"> <?php echo $this->get_excerpt($excerpt_length); ?> </div> <div class="read-more"> <a href="<?php echo $this->href;?>"><?php echo __td('Read more', TD_THEME_NAME);?></a> </div> <?php echo $this->get_quotes_on_blocks();?> </div>