Forums

[resolved] Use own quicktags (like <!--more-->) (3 posts)

  1. derventa
    Member
    Posted 11 months ago #

    Hey everyone,

    I'd like to create and use own quicktags like <!--mygallery--> in my posts to include a gallery link or other stuff.

    <del>My search led so far to no results, as I don't really know, how those tags are called at all. When searching for "tags" I only got information about the Template Tags that are no use in this case.</del>

    What I already found out: The <!--more--> tag is replaced by html code in wp-includes/post-templates.php. Should I just add my PHP script there?

    Thanx for tips or the name of a plugin, that helps me using own tags!

    Jonas (on WP 2.7)

  2. derventa
    Member
    Posted 11 months ago #

    To update my post (editing is not possible somehow):

    It seems that those Tags are named "quicktags" as they are mostly created with the quicktag.js script. But I'm nut shure about that. However - I already modified this file to fit my needs, but this is not, what I want to ask for!

    As well I don't need a plugin like AddQuicktag which only helps me adding custom quicktags to the wysiwyg editor.

    I need some kind of script which allows me to create a new function that can be adressed via <!-quicktag-->. How and where does this work?

  3. derventa
    Member
    Posted 11 months ago #

    By default they don't support <!--, but those two plugin should do it:

    http://coffee2code.com/wp-plugins/dynamic-text-replace/
    http://coffee2code.com/wp-plugins/text-replace/

    And by the way: With that crap of search engine on wp.org it is no wonder, I could not find anything to meet with my approval...

Reply

You must log in to post.

About this Topic