WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Why this plugin is created

[Resolved] Why this plugin is created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author takien
    Member

    @takien

    Very good suggestion.
    Thank you.

    Apologize for maybe the wrong topic, but I can’t find where to start a new about this plugin.

    I tried to use it in the_excerpt() and in the truncate_post() AND in the_content().

    Neither one works (doesn’t convert into a ?s=’thehashtag’).
    Can you help me? Thanks.

    http://www.site.energizedesigns.nl

    [edit]

    Nevermind.. I fixed it with tags.

    Solution:
    <div class=”divclass”>
    <?php $posttags = get_the_tags();
    if ($posttags) {
    foreach($posttags as $tag) {
    echo ‘<a href=”‘;echo bloginfo(url);
    echo ‘/?s=’ . $tag->slug . ‘”>’ . $tag->name . ”;
    }
    }
    ?>
    </div>

    Only thing to do is .divclass a:before { content=”#” }

    Then you can add tags as hashtags 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Why this plugin is created’ is closed to new replies.