WordPress.org

Forums

xili-language
Function to filter the_time (1 post)

  1. baudesign
    Member
    Posted 4 years ago #

    I am working on implementing the xili-language plugin within the iA3 template.

    This filter:

    /** * in twentyten theme: display the date of current post */
    function xiliml_get_translated_date($thedate, $format = '') {
    	$theformat = (''== $format) ? get_option('date_format') : $format ;
    	return the_xili_wp_local_time($theformat,strtotime(xiliml_get_the_date('m/d/Y H:i')));
    }
    add_filter('get_the_date','xiliml_get_translated_date',10,2);

    ...that is part of the plugin, clearly targeting the twentyten theme, filters out my date; it just disapears!:

    <time datetime="<?php the_time('c') ?>" pubdate="pubdate"><?php the_date() ?></time>

    What can I do, beside stripping it out of the plugin, to correct the situation?

    Thanks

    Pat

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • xili-language
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic