parsing test within posts (2 posts)

  1. thomastolleson
    Posted 9 years ago #

    I want to extract a certain piece of text from every post that lies between opening and closing quotation marks. I know ho to do this in PHP, but I'm wondering if I can do this in WordPress.

  2. http://codex.wordpress.org/Writing_a_Plugin

    <?php /*
    Plugin Name: thomastolleson's Filter Plugin
    Plugin URI: http://wordpress.org/support/topic/98764
    Version: 1.0.0
    Description: Filters a post.
    Author: thomastolleson
    Author URI: http://www.google.com/
    add_filter('the_content', 'thomastolleson_function');
    function thomastolleson_function($content) {
    // Do something to $content here
    return $content;

Topic Closed

This topic has been closed to new replies.

About this Topic