Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hey, your plugin is brilliant! It works very reliable and offers an easy approach to customizing.

    Yet, I have a problem with trimming posts. The theme I use doesn’t have archive.php nor single.php. It just offers head.php, index.php and footer.php.

    I added the aforesaid function to function.php, but changing the_content(); in index.php to echo custom_trim_excerpt(200); worked only partially: the text was trimmed to 200 words, but the link to the original URL as specified in the WPMatico template wasn’t generated anymore. My WPMatico template looks like this:

    {content}
    <a href="{feedurl}">Source ({feeddescription})</a>

    Switching back to the_content(); enables the link to the source again, but then again I get no trimming.

    Do you have a suggestion what else I could try?

    Plugin doesn’t work on my blog either. After sending an error message is shown, saying that the data is insufficient.

    Thread Starter spida2

    (@spida2)

    But I cannot put php into php, can I?

    Or should it be like this:


    <?php
    if (is_single()) {
    echo '<h2><?php _e($posts_widget_title); ?></h2>';
    } else {
    echo '<h2><?php _e($posts_widget_title); ?></h2>';
    }
    ?>

    But this would not make sense, since both times the same widget title will be given. Or am I on the wrong track?

    Cheers,
    Luka

    Thread Starter spida2

    (@spida2)

    Yeah, wow, it works!
    Thank you for your help!

    EDIT:

    Just this one’s a problem:
    <?php
    if (is_single()) {
    $posts_widget_title = 'Recent Posts';
    } else {
    $posts_widget_title = 'Random Posts';
    }
    ?>

    How do I handle it best?

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