• Resolved sarasn

    (@sarasn)


    Hi!

    As I can see from the json import the “intro” and information there is sent from Cision. This information is not importing like the rest in the post. We have to paste in the intro after the import manually. How do I solve this problem?

    Thanks!

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author cyclonecode

    (@cyclonecode)

    Hm, best would be if you could email me you current plugin configuration and I will try to see what is going on, you can use [email protected]
    My best guess is that the defaults somehow is set incorrectly.

    Regards,
    Krister

    Plugin Author cyclonecode

    (@cyclonecode)

    Oh this is a single post page. Looking on the code it only displays the Title and Body by default.

    
      <header class="entry-header has-text-align-center header-footer-group">
        <div class="entry-header-inner section-inner medium">
          <?php echo '<h1 class="entry-title">' . $CisionItem->Title . '</h1>'; ?>
        </div>
      </header>
    
       <div class="post-inner thin">
         <div class="entry-content">
           <p><?php echo $CisionItem->HtmlBody; ?></p>
         </div><!-- .entry-content -->
       </div>
    

    The easiest fix for this would be to just copy the template into your current themes folder and modify it to something like this:

    
      <header class="entry-header has-text-align-center header-footer-group">
        <div class="entry-header-inner section-inner medium">
          <?php echo '<h1 class="entry-title">' . $CisionItem->Title . '</h1>'; ?>
        </div>
      </header>
    
       <div class="post-inner thin">
         <div class="entry-content">
           <p><?php echo $CisionItem->Intro; ?></p>
           <p><?php echo $CisionItem->HtmlBody; ?></p>
         </div><!-- .entry-content -->
       </div>
    

    The template can be found under:

    wp-content/plugins/cision-block/src/Frontend/templates/cision-block-post.php.

    Thread Starter sarasn

    (@sarasn)

    Perfect, what an easy fix, Thanks a lot!

    • This reply was modified 3 years, 10 months ago by sarasn.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Intro not displaying in post’ is closed to new replies.