Support » Plugin: Stella plugin » the_title bypass, need help to restore it?

  • kompresor

    (@kompresor)


    Greatest plugin ever, you rule!

    I have an issue though, and one i cant work out, so please help me!

    My theme does not use the_title, but instead does something called apply_filters( ‘the_title’, get_the_title() );

    When it calls the_title later, it does not load the translation, it’s just an empty string.

    I’m guessing it’s bypassing your code somehow.

    Here’s the entire loop code, please help me fix this, please!

    while ( $service_query->have_posts() ) : $service_query->the_post();
    global $more; $more = 0;
    $page_title = apply_filters( ‘the_title’, get_the_title() ); ?>
    <div class=”service<?php if ( 1 == $i ) echo ‘ first’; if ( 3 == $i ) echo ‘ last’; ?>”>
    <h3><?php echo $the_title; ?></h3>

    <?php
    if ( ( $icon = get_post_meta($post->ID, ‘Icon’, true) ) && ” != $icon ) echo ‘<img class=”icon” alt=”‘ . esc_attr( $page_title ) . ‘” src=”‘ . esc_url( $icon ) . ‘” />’;
    ?>

    <?php the_content(”); ?>
    </div> <!– end .service –>
    <?php endwhile; wp_reset_postdata(); ?>

    http://wordpress.org/extend/plugins/stella-free/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Ruslan.Khakimov

    (@ruslankhakimov)

    Hi, hmmm.
    What is the reason to use apply_filters( ‘the_title’, get_the_title() ) ?
    get_the_title function already has ‘the_title’ filter.

    kompresor

    (@kompresor)

    I didnt make the theme man, that’s how it came 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘the_title bypass, need help to restore it?’ is closed to new replies.