How can we help?
If you are looking for support for our PokaTheme, this is the place!
Forum Replies Created
-
AuthorPosts
-
casino1
ParticipantHey Cabhal,
You can call the wordpress function get_the_excerpt();
But that will display <p> and </p> in the data structure markup.
If you want to remove the <p>, do the following:
// $get_excerpt_text = the_excerpt();
$get_excerpt_text = get_the_excerpt();// Strip the <p> tag by replacing it empty string
$tags = array(“<p>”, “</p>”);
$excerpt_content = str_replace($tags, “”, $get_excerpt_text);Then just echo in the markup where you want to display the excerpt: <?php echo $excerpt_content ?>
casino1
ParticipantHi,
Have you tried to updated permalinks? Sounds like they need a nudge.
Go to Settings -> Permalinks -> click save settings (no need to change anything) and the old reviews slug should be updated as well.
casino1
ParticipantHmm, but the html-mark up is added to the amp-template:
<amp-iframe width=”400″ height=”225″
sandbox=”allow-scripts allow-same-origin”
layout=”responsive” src=”<?php the_field(‘iframe_demo_game’); ?>”>
<amp-img placeholder layout=”fill”
src=”https://ampproject-b5f4c.firebaseapp.com/examples/images/kittens-biting.jpg”></amp-img>
</amp-iframe>For the iframe_demo_game field, I only add the following: https://caocw.playngonetwork.com/casino/PlayMobile?pid=2&gid=bookofdeadmobile&lang=en_GB&practice=1
That shouldn’t be tagged as an iframe – or I’m I missing something? 🙂
casino1
ParticipantThanks for the reply.
Me neither, it’s very confusing. And google mce_src gives 0 results.
Yes, it’s only the url to the iframe.
These are the ACF conditions for the iFrame field:
array(
‘key’ => ‘field_5a82e9a68111e’,
‘label’ => ‘Iframe Demo Game’,
‘name’ => ‘iframe_demo_game’,
‘type’ => ‘textarea’,
‘instructions’ => ”,
‘required’ => 0,
‘conditional_logic’ => 0,
‘wrapper’ => array(
‘width’ => ”,
‘class’ => ”,
‘id’ => ”,
),
‘default_value’ => ”,
‘placeholder’ => ”,
‘maxlength’ => ”,
‘rows’ => ”,
‘new_lines’ => ”,
),casino1
ParticipantThis reply has been marked as private. -
AuthorPosts