• Hi Chandan

    Thanks for creating this plugin.

    When tweets are imported into my WordPress site, the whole tweet looks to be displayed as the post title.

    http://www.londonartnews.co.uk/

    This prevents any links in the original tweet from working until you click through to the dedicated post page.

    Ideally either the links in the title would work, or I could find a way to display the whole content of the tweet on the main page, ruling out the need to click through to the dedicated post page…which is a bit of a drag for the user.

    Any suggestions?

    Many thanks

    https://wordpress.org/plugins/import-tweets-as-posts/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Chandan Kumar

    (@chandanonline4u)

    Hi Leytonstone,

    Post title has the tweet text only to identify your tweet(for your reference). You should use post content for displaying tweet text with links.

    I hope this will help you.

    Thanks.

    Thread Starter Leytonstone

    (@leytonstone)

    Hi Chandan

    Many thanks for your advice, but I’m unsure what you’re suggesting. In practical terms, how do I go about “using post content for displaying tweet text with links.”?

    Many thanks

    Plugin Author Chandan Kumar

    (@chandanonline4u)

    I am asking to use $post->post_content to display tweet content within the loop where you are listing tweets.

    Thread Starter Leytonstone

    (@leytonstone)

    Hi Chandan

    Sorry, this means nothing to me.

    Im using your plug-in to post tweets to my home page.

    Where will I find the code that needs editing to include “$post->post_content” as you’re suggesting?

    Would it be just a matter of altering existing code? I wouldn’t know how to write anything new or where to place it.

    Thanks for your help

    Plugin Author Chandan Kumar

    (@chandanonline4u)

    If you are using default post listing template for tweets listing. It will be displaying tweet’s title and tweet’s content both. Tweet title used only for reference of editing or identifying existing tweets in backend. You should use tweet content instead of tweet title to display on site.

    To do this you have to make some changes on exiting post listing template or create a new template to list tweets. I can help you in doing this. Please share your post listing template code here.

    Thanks.

    Thread Starter Leytonstone

    (@leytonstone)

    Hi Chandan

    Thanks so much for offering to help.

    This is my themes ‘Single Post (single.ph)’ template. is this the right one?

    <?php
    /**
    * The template for displaying all single posts and attachments
    *
    * @package Cyanotype
    * @since Cyanotype 1.0
    */

    get_header(); ?>

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

    <?php
    // Start the loop.
    while ( have_posts() ) : the_post();

    get_template_part( ‘content’, ‘single’ );

    // If comments are open or we have at least one comment, load up the comment template.
    if ( comments_open() || get_comments_number() ) :
    comments_template();
    endif;

    // Previous/next post navigation.
    the_post_navigation( array(
    ‘next_text’ => ‘<span class=”meta-nav” aria-hidden=”true”>’ . __( ‘Next’, ‘cyanotype’ ) . ‘</span> ‘ .
    ‘<span class=”screen-reader-text”>’ . __( ‘Next post:’, ‘cyanotype’ ) . ‘</span> ‘ .
    ‘<span class=”post-title”>%title</span>’,
    ‘prev_text’ => ‘<span class=”meta-nav” aria-hidden=”true”>’ . __( ‘Previous’, ‘cyanotype’ ) . ‘</span> ‘ .
    ‘<span class=”screen-reader-text”>’ . __( ‘Previous post:’, ‘cyanotype’ ) . ‘</span> ‘ .
    ‘<span class=”post-title”>%title</span>’,
    ) );

    // End the loop.
    endwhile;
    ?>

    </main><!– .site-main –>
    </div><!– .content-area –>

    <?php get_footer(); ?>

    Plugin Author Chandan Kumar

    (@chandanonline4u)

    Single.php is used as individual post template. If you make any code change here it will reflect for each post.

    I will suggest you to create a new page template and to list your tweets.

    To check for now to display only tweet content comment the code:
    ‘get_template_part( ‘content’, ‘single’ );’

    And write this:
    ‘echo apply_filters(‘the_content’, $post->post_content);’

    This will display only tweet content. Please have the backup of file before change. After checking the output undo the changes and save file again so that It works like before.

    Please contact me through my mail if you still found difficulty in doing this.

    Thread Starter Leytonstone

    (@leytonstone)

    Hi Chandan

    Thanks for your ongoing advice.

    I tried your suggestion but the only thing that did was to make a slight change to the layout of the dedicated (single) tweet pages,

    How do I contact you? the link to your website doesn’t appear to be working – chandankumar.in

    Id be happy to work something out with you regarding any time you have to help me with this.

    Thanks

    Plugin Author Chandan Kumar

    (@chandanonline4u)

    You can contact me on chandanonline4u@gmail.com. I have also tried contacting you through your website contact form and leaved the contact details there.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Two requests’ is closed to new replies.