WordPress.org

Ready to get started?Download WordPress

Forums

stella plugin
the_title bypass, need help to restore it? (3 posts)

  1. kompresor
    Member
    Posted 1 year ago #

    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/

  2. Ruslan.Khakimov
    Member
    Plugin Author

    Posted 1 year ago #

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

  3. kompresor
    Member
    Posted 1 year ago #

    I didnt make the theme man, that's how it came :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic