ThemeShaper Forums » Thematic


Filtering the_content on a custom page template

(5 posts)
  • Started 9 years ago by helgatheviking
  • Latest reply from helgatheviking
  • This topic is not resolved
  1. I am trying to build a custom page template to serve as a PPC landing page. Essentially I just want the information from body of my page and I will then style it w/ css. I already figured out how to pass custom variables as the headline and subheadlines, etc.

    My problem is that I have the onlywire plugin installed on my site and it filters itself into the_content. but i don't want it there for my landing page. yes i could turn off OW, and i think i might, but i'd like to know how to just pull the text from the_content so that i will never have to worry about any plugins i add in the future showing up on my landing pages.

    i was thinking i could add a conditional statement to functions.php that went something like
    if ( is_page_template('landing.php') ) {

    somehow filter the_content so i just take the text, markup, but nothing added by a plugin


    i tried

    function remove_onlywire() {

    in that conditional, but it didn't work. plus i dont want to have to do that again in the future if some other plugin sneaks its way into the_content.

    any ideas? thanks!

    Posted 9 years ago #
  2. Hi,

    need to look into this. As far as I can remember my code, I can only prevent ALL filters (needs a mod of the Thematic core).


    Posted 9 years ago #
  3. maybe i will take a look at my remove function again as i don't think i was correctly naming the onlywire function.

    what kind of output do you get if you disable all filters?

    Posted 9 years ago #
  4. Hi-

    I've had similar problems with other plugins filtering the_content either before I can filter it or on pages I don't want it filtered. The hard part is finding where to hook in so that your filter or removal happens in the proper order. I did a quick test against this plugin and I believe 'wp' is the proper hook.


    function remove_ow_function() {
      if ( is_page_template('landing.php')) {


    Posted 9 years ago #
  5. wow. thanks gene! i will give this a try.

    Posted 9 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.