Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter Filip

    (@vladfilip)

    still not solved…anyone has a solution for this? thank you in advance.

    Thread Starter Filip

    (@vladfilip)

    wow, wour snippet works just great! thank you for that!

    as a side thing, just wondering, do you have any idea if it’s possible to use multiple ‘data’ fields? for example if an event is happening in 2 or 3 days?

    anyway, thank you, i really apreciate your given help!

    Thread Starter Filip

    (@vladfilip)

    hey bcworkz, thank you very much for your answer, i’m going to try that right now and i’ll be back with the result.

    thank you again

    Hello, thank you for this snippet, works great with recent posts.

    i was wondering do you have any idea how could i make it work if i have a custom query?

    thank you very much in advance

    Thread Starter Filip

    (@vladfilip)

    oh now i understand! i didnt pay attention to the multi network plugin. that allows me to create secondary multi sites 😀 got it!

    thank you very much Ipstenu for your help.

    Thread Starter Filip

    (@vladfilip)

    i guess that’s the only way that would work with what i want.. although i won’t like having 2 wp installed. my main (single site) and the multi-site…

    thank you for your answer

    Thread Starter Filip

    (@vladfilip)

    hello, thank you for your answer… taht didn’t work either… i don’t know why… i managed to resolve this issue with copying a fragment of better excerpt plugin in functions.php:

    add_option("better_excerpt_length", '250', '', 'yes');
    add_option("better_excerpt_ellipsis", '...', '', 'yes');
    add_option("better_excerpt_before_text", '<p>', '', 'yes');
    add_option("better_excerpt_after_text", '</p>', '', 'yes');
    add_option("better_excerpt_keep_line_breaks", '0', '', 'yes'); 
    
    function get_options(){
     $options = array();
     $options['length'] = get_option(better_excerpt_length);
     $options['ellipsis'] = get_option(better_excerpt_ellipsis);
     $options['before_text'] = get_option(better_excerpt_before_text);
     $options['after_text'] = get_option(better_excerpt_after_text);
    
    return $options;
    }
    
    function better_excerpt($length, $ellipsis, $before_text, $after_text) {
    $permalink = get_permalink($post->ID);
    $text = get_the_content();
    $text = preg_replace(" (\[.*?\])",'',$text);
     if ($keep_line_breaks == 0) {
    $text = strip_tags($text);
     }
     else {
    $text = strip_tags($text, '<p><br>');
     }
    $text = substr($text, 0, $length);
    $text = substr($text, 0, strripos($text, " "));
    $text = trim(preg_replace( '/\s+/', ' ', $text));
    $text = stripslashes($before_text).$text.$ellipsis;
    $text .=stripslashes($after_text);
    return $text;
    }
    
    function get_better_excerpt() {
    $options = get_options();
    extract($options);
    return better_excerpt($length, $ellipsis, $before_text, $after_text);
    }
    
    remove_filter('get_the_excerpt', 'wp_trim_excerpt');
    add_filter('get_the_excerpt', 'get_better_excerpt');

    and now it works…

    Thank you again!

    Forum: Plugins
    In reply to: Highlight unread articles
    Thread Starter Filip

    (@vladfilip)

    I use wp-sifr…in this case, i have to disable it…right? and use the default titles…

    Forum: Plugins
    In reply to: Highlight unread articles
    Thread Starter Filip

    (@vladfilip)

    …so…i can add an icon to an unvisited link from css? (i didt think of that...) i should try...cuz it’s not that hard…i guess…it sounds like a good ideea…Thanks a lot 🙂

    Thread Starter Filip

    (@vladfilip)

    …i wanted to ask just to be sure i don’t mess up something…Thanks a lot for your answer…the “new” blog will be the exact copy of the “old” one…just copy-paste from ftp …

    Thanks again and have a nice day!

Viewing 10 replies - 1 through 10 (of 10 total)