Strict Standards: Redefining already defined constructor for class bbdb in /home/themes/public_html/forums/bb-includes/db-mysql.php on line 12

Strict Standards: Declaration of BB_Walker_Blank::start_lvl() should be compatible with BB_Walker::start_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_lvl() should be compatible with BB_Walker::end_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::start_el() should be compatible with BB_Walker::start_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_el() should be compatible with BB_Walker::end_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127
New content filter « ThemeShaper Forums

ThemeShaper Forums » Thematic

[closed]

New content filter

(4 posts)
  • Started 3 years ago by sabinhas
  • Latest reply from helgatheviking
  • This topic is not resolved
  1. sabinhas
    Member

    Hi guys
    im trying to do a filter on my content but this function that i made doesnt seem to work. someone can help me? thanks in advance.

    function thematic_content_new() {

    if (is_category('shop')) { ?>

    <div class="view view-first"><img class="alignleft" title="<?php echo get_the_title(); ?>" src="<?php echo get_post_meta(get_the_ID(), 'image-shop', true); ?>" /></div>
    <div class="price"><?php echo get_post_meta(get_the_ID(), 'price-shop', true); ?></div>
    <div class="description"><?php echo get_post_meta(get_the_ID(), 'hover-shop', true); ?></div>
    <div class="buttons"><?php echo get_post_meta(get_the_ID(), 'buybuttons-shop', true); ?></div>

    <?php
    }
    }
    add_filter('thematic_content','thematic_content_new');

    Posted 3 years ago #

  2. Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 440

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 510

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 512


    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 440

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 510

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 512
    helgatheviking

    Moderator

  3. sabinhas
    Member

    Hi helga. thks for your help. can you just tell me if im doing the right thing on there. what can you see wrong on that code?

    Posted 3 years ago #

  4. Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 440

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 510

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 512


    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 440

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 510

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 512
    helgatheviking

    Moderator

    well you aren't filtering correctly, or targeting the correct filter. with filters you have to return a variable.

    return $something;

    if you don't (as you aren't above) then nothing will happen.

    look closely at content-extentions.php. the thematic_content filter decides whether to show full posts or excerpts.

    the function that controls what that content will actually be is called thematic_content, but that function concludes with

    echo apply_filters('thematic_post', $post);

    so the appropriate filter name is thematic_post. filters and functions are not required to have the same name, even though they commonly do in thematic.

    Posted 3 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.


Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method GA_Filter::spool_analytics() should not be called statically in /home/themes/public_html/forums/bb-includes/wp-functions.php on line 586

Strict Standards: Non-static method GA_Filter::spool_this() should not be called statically in /home/themes/public_html/forums/my-plugins/googleanalytics.php on line 183