Forums

the_content_rss not echoing anything (4 posts)

  1. voidtrance
    Member
    Posted 2 years ago #

    One of the plugins that I am using (featured-content-gallery) uses the function the_content_rss to extract some of the text from each post. The function is being used inside The Loop, however, it does not seem to be returning any content.

    Below is the code that the plugin is using:

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
           <div class="imageElement">
                <h2><?php the_title() ?></h2>
                <?php
                     if(get_option('gallery-use-featured-content')) {?>
                     <p><?php $key="featuredtext"; echo get_post_meta($post->ID, $key, true); ?></p>
                     <?php
                     } else {
                     ?>
                     <p><?php the_content_rss('', false, '', $wordquantity); ?></p>
                     <?php
                     }
    ?>

    Could anyone help me figure out why the function would not be returning any text? Thanks

  2. Samuel B
    moderator
    Posted 2 years ago #

    <p><?php the_content_rss('', false, '', $wordquantity); ?></p>
    change "false" to "true"

  3. voidtrance
    Member
    Posted 2 years ago #

    Thanks for the suggestion.

    Unfortunately, that didn't work. There is still nothing being echo'ed by the function.

  4. voidtrance
    Member
    Posted 2 years ago #

    It's been a week since the last reply.

    Can anyone help me figure out why the_content_rss is not returning anything?

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic