Forum

Thread tagged as: Problem, Blog

Embedding Tweets isn't working

Hello,

I'd like to be able to embed tweets into my blog posts but this doesn't seem to work for some reason, it just outputs as normal html. Is there any reason why this isn't working?

My diagnostic report is below.


Perch: 2.8.8, PHP: 5.4.37, MySQL: mysqlnd 5.0.10 - 20111026 - $Id: c85105d7c6f7d70d609bb4c000257868a40840ab $, with PDO Server OS: Linux, cgi-fcgi Installed apps: content (2.8.8), assets (2.8.8), categories (2.8.8), perch_blog (4.6) App runtimes: <?php include(PERCH_PATH.'/core/apps/content/runtime.php'); include(PERCH_PATH.'/core/apps/categories/runtime.php'); include(PERCH_PATH.'/addons/apps/perch_blog/runtime.php'); ?> PERCH_LOGINPATH: /perch PERCH_PATH: /home/isismag/public_html/perch PERCH_CORE: /home/isismag/public_html/perch/core PERCH_RESFILEPATH: /home/isismag/public_html/perch/resources Image manipulation: GD Imagick PHP limits: Max upload 32M, Max POST 48M, Memory: 64M, Total max file upload: 32M Resource folder writeable: Yes SCRIPT_NAME: /perch/core/settings/diagnostics/index.php REQUEST_URI: /perch/core/settings/diagnostics/ DOCUMENT_ROOT: /home/isismag/public_html HTTP_HOST: www.isismag.com
Nathaniel Nwosu

Nathaniel Nwosu 0 points

  • 6 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

We need to see your blog post template.

Hello Rachel,

Sorry for the delay, my code is..


<article class="h-entry"> <h1> <a href="<perch:blog id="postURL" type="hidden" />" rel="bookmark" class="p-name"> <perch:blog id="postTitle" type="text" label="Title" required="true" size="xl autowidth" order="1" /> </a> </h1> <p class="meta"> <time class="dt-published" datetime="<perch:blog id="postDateTime" type="date" label="Date" time="true" format="Y-m-d H:i:s" divider-before="Meta information" />"> <perch:blog id="postDateTime" type="date" time="true" format="%d %B %Y" /> </time> <perch:if exists="authorGivenName"> by <span class="p-author h-card"><perch:blog id="authorGivenName" type="hidden" /> <perch:blog id="authorFamilyName" type="hidden" /></span> </perch:if> <perch:categories id="categories" set="blog" label="Categories" display-as="checkboxes"> in <a href="archive.php?cat=<perch:category id="catSlug" type="slug" />" class="p-category"> <perch:category id="catTitle" type="text" /> </a> </perch:categories> </p> <perch:if exists="thumbnail"> <div> <img src="<perch:blog id="image" type="image" width="257" height="172" crop="true" label="Thumbnail" order="4" />" alt="<perch:blog id="postTitle" />" /> </div> </perch:if> <div class="description e-content"> <perch:blog id="postDescHTML" type="textarea" label="Post" order="2" editor="ckeditor" html="true" markdown="true" size="xxl autowidth" required="true" /> </div> </article> <perch:blog id="excerpt" type="textarea" label="Excerpt" markdown="true" words="35" append="..." help="35 words max - make it snappy, exciting and interesting!" order="3" suppress="true" size="s" /> <perch:blog id="image" type="image" width="50" height="50" crop="true" suppress="true" /> <perch:blog id="image" type="image" width="257" height="172" crop="true" suppress="true" />
Drew McLellan

Drew McLellan 2638 points
Perch Support

Which field are you embedding the tweet within?

in the source code are in the blog window

Drew McLellan

Drew McLellan 2638 points
Perch Support

I'm sorry, I don't understand.

Sorry, in the space provided to add blog content there's a button that says "Source" I paste the embed code from twitter in there. Here's a print screen https://prntscr.com/7tf4wo

Drew McLellan

Drew McLellan 2638 points
Perch Support

Where you have:

 editor="ckeditor" html="true" markdown="true"

remove

 markdown="true"

Ahh thank you, I will try this tomorrow and let you know how it goes

Hi Drew,

This worked perfectly - thank you very much for your help.

Drew McLellan

Drew McLellan 2638 points
Perch Support

No problem!