Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am attempting to create a filter in my theme to override the view file used for the Loop Module in Carrington Build, but nothing is happening.

            function my_load_loop_view($view, $data) {
                if (is_home() || is_front_page()) {

                    $view = trailingslashit(get_stylesheet_directory()). 'views/cfct-module-loop-view.php';
                }
                return $view;
            }
            add_filter('cfct-module-loop-view', 'my_load_loop_view', 10, 2);                

If I'm understanding the documentation correctly, this is pretty much exactly how it's done. This is the example the manual shows:

function my_load_callout_view($view, $data) {
    if (is_home() || is_front_page()) {
        $view = trailingslashit(get_stylesheet_directory()).'views/callout-home-view.php';
    }
    return $view;
}
add_filter('cfct-module-cfct-callout-view', 'my_load_callout_view', 10, 2);

I've also experimented with different values for the add_filter() priority, but that had no effect.

share|improve this question

closed as too localized by toscho Feb 15 '13 at 20:31

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.