• Hi,

    I am using wp content filter with the classipress theme. The filter works perfectly on the ad title and on the ad description when the ad is clicked on and viewed, but when looking through the full ad listings of all the adverts placed, then the short description of the ad is not filtered.
    What can I do to fix this.
    Thanks
    Sandra.

    https://www.ads-software.com/plugins/wp-content-filter/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author David Gwyer

    (@dgwyer)

    I’m not sure what you mean by ‘ads’. If this is some bespoke content added to the theme then plugin won’t filter it.

    To do this the plugin code could be updated. In the future I will be adding hooks in the plugin so you can add code to your theme or another plugin to modify WP Content Filter to filter any extra content you wish.

    Thread Starter masandra

    (@masandra)

    That will be fantastic. Please let me know when you do this so that I can update.

    Many Thanks

    Sandra.

    Plugin Author David Gwyer

    (@dgwyer)

    Actually, looking at the code you should be able to do this already. For example the plugin filters ‘the_title’ via:

    add_filter( 'the_title', 'pccf_filter' );

    So, if you have custom content that can be filtered then you can just pass it through the plugin content filter as follows:

    add_filter( 'my_custom_content', 'pccf_filter' );

    Hope that helps!

    Thread Starter masandra

    (@masandra)

    I am not to familiar with code, I adding some custom code but can’t get it to filter on the ad listings page.
    I have a classified ads site and the filter works great on the single ad listing page, the page where you are viewing the persons ad, but when scrolling through the ad listings, that is the lists of ads posted, it do not filter on these.
    It is a shame, as wp content filter is very easy to use and would be a great plugin for classified ads sites.

    Plugin Author David Gwyer

    (@dgwyer)

    As I said above if you can hook into the content you want to filter then you can pass it to the ‘pccf_filter’ callback function.

    It sounds like you’d need someone to take a closer look at the code to figure it out.

    Thread Starter masandra

    (@masandra)

    Hi,

    Would you be able to look into the code for me and if so how much will it cost?

    Sandra

    Plugin Author David Gwyer

    (@dgwyer)

    I’m not available for custom work right now, but if you get a working patch let me know. I’d take a look and if all OK add it to the next version of the plugin.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘wp content filter and Classipress theme’ is closed to new replies.