• Fantastic plugin, but I am trying to implement it with a jQuery plugin and was hoping for some direction.

    In the code example below, the ‘searchLinks’ option in bolded text (wpmu) affects the output of a Twitter stream based on the pre-defined search term ‘wordpress’. By clicking that link, the Twitter stream will change from all posts with ‘wordpress’ to ‘wpmu’. This text is visible within the custom page template I’m using, but I can’t figure out if it’s possible to make this an editable item using Front End Editor. Assistance greatly appreciated!

    <div id=”twitterSearch” class=”tweets”></div>
    <p id=”searchLinks”>Change to: wpmu.</p>

    <div id=”twitterUserTimeline” class=”tweets”></div>

    <script type=”text/javascript”>

    // Basic usage
    $(‘#twitterSearch’).liveTwitter(‘wordpress‘, {limit: 5, rate: 5000});

    // Changing the query
    $(‘#searchLinks a’).each(function(){
    var query = $(this).text();
    $(this).click(function(){
    // Update the search
    $(‘#twitterSearch’).liveTwitter(query);
    // Update the header
    $(‘#searchTerm’).text(query);
    return false;
    });
    });

    </script>

Viewing 3 replies - 1 through 3 (of 3 total)
  • You have to pass your item through a WordPress filter. That filter, along with a handling class, has to be registered with the Front-end Editor plugin.

    See the Developer Guide.

    Thread Starter Scotm

    (@scotm)

    This is the item that needs editing in order to see a change in the results:

    <p id=”searchLinks”>Change to: mysearchterm.</p>

    You’re saying I need to be able to pass this through a filter and that this will enable it to be an option within the plugin’s settings?

    I recommend using jEditable instead, since making this work with FEE would be sort of convoluted.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Front-end Editor] Use With jQuery’ is closed to new replies.