• Hi!

    I’ve a Wp with tweets embeded posts

    My problem is that the Search box will not find text in embedded tweets.
    BUT when single post is loading there’s text before embedded tweets appear and is the text of the tweet link.

    I give you the example:
    here is what you see if you search “attack”
    https://www.sageadvice.eu/?s=attack
    You’ll see all post with some tweet text (the answer tweet)

    If you click on a single post you’ll see all embedded tweet
    https://www.sageadvice.eu/2015/01/15/add-sneak-attack-damage-to-eldritch-blast/

    Did you have any suggestions about some plugin that transcribe tweet text in post? or maybe is alternative text, or just searchable text? For my blog is important to show embedded tweet and not transcribe tweets text.

    Thanks in advance

    z

Viewing 7 replies - 1 through 7 (of 7 total)
  • Your search results page is displaying the post “excerpt” which is automatically generated based on the text in the post, but shortcodes and other processing is not applied. You could modify this, either through a child theme or a filter, depending on your preference, to display the full post content and apply shortcode/other processing.

    Thread Starter zoltarzoltar

    (@zoltarzoltar)

    Thanks Karp!

    How can I modify child theme or filter?
    plugins?
    shortcode?

    regards

    Can you copy and paste the contents of the search.php file from your active theme? (If search.php doesn’t exist, use index.php instead.) If the code is long, use a free service like pastebin.com.

    Thread Starter zoltarzoltar

    (@zoltarzoltar)

    Do you think is possible to have all the post “excerpt” with tweet question and answer? Could be very useful for seo!
    Anyway, first, thanks for support, second this is the search.php

    <?php
    /**
    * The template for displaying Search Results pages.
    *
    * @package Fictive
    */

    get_header(); ?>

    <section id=”primary” class=”content-area”>
    <main id=”main” class=”site-main” role=”main”>

    <?php if ( have_posts() ) : ?>

    <header class=”page-header”>
    <h1 class=”page-title”><?php printf( __( ‘Search Results for: %s’, ‘fictive’ ), ‘<span>’ . get_search_query() . ‘</span>’ ); ?></h1>
    </header><!– .page-header –>

    <?php /* Start the Loop */ ?>
    <?php while ( have_posts() ) : the_post(); ?>

    <?php get_template_part( ‘content’, ‘search’ ); ?>

    <?php endwhile; ?>

    <?php fictive_paging_nav(); ?>

    <?php else : ?>

    <?php get_template_part( ‘content’, ‘none’ ); ?>

    <?php endif; ?>

    </main><!– #main –>
    </section><!– #primary –>

    <?php get_footer(); ?>

    Okay, can you copy/paste the contents of content-search.php as well? (Please use the code format option in the toolbar just above the editor – makes it easier to read.)

    Thread Starter zoltarzoltar

    (@zoltarzoltar)

    unfortunaltely I’ve no content-search.php ??

    How can resolve? :/

    Thread Starter zoltarzoltar

    (@zoltarzoltar)

    Help!

    thanks ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Twitter embedded post’ is closed to new replies.