Portfolio page content section above the posts

Homepage Community Forums Epik Theme Support Portfolio page content section above the posts

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #16089
    Joseph
    Customer

      Has the issue been resolved?
      Text Content Above Posts on Portfolio Page

      How do I get the portfolio page description to keep html tags such as paragraphs <p>

      everything is getting stripped. I need to keep formatting as it is on the editor.
      here is the link to a portfolio page:
      http://dietdoc.com/hormone-replacement-therapy/estrogen-replacement/

      have been trying to resolve this for hours and no luck, any help is appreciated.

      thanks

      #16091
      Wes
      Moderator

        Yes we had this resolved a long time ago (over a year ago I believe). If you look at the demo, you can see that the paragraph tags are working properly. I just logged in and added 2 paragraphs to make sure it’s working.

        The forum post you linked to had a different issue, they were trying to get the content to show before the Portfolio Posts/Thumbnails….but they didn’t report any of the code being stripped though. Since nothing is being stripped on the demo, or any of the other sites I’ve used this theme, I assume there is something else externally causing the issue. Do you have any plugins active that may be interfering with your content? Just in case, I would try and temporarily disable them all and then try adding the content again.

        Before doing that ^ can you tell me how you are adding the content? Are you adding it using the VISUAL or the Text TAB in the editor? You may already know this, but if you use the Text Tab you have to add in the paragraph tags manually. Using the Visual Tab you don’t have to do that, you can just hit enter and it automatically adds it in the background.

        #16094
        Joseph
        Customer

          Thanks Wes,
          I have deactivated all plugins but still can’t get simple <p> tags to show, even though it’s saved on the post as it’s showing on the database (phpmyadmin)

          on page_portfolio.php, somehow the following line of code is stripping all HTML.

          echo '<div class="entry-content entry-portfolio" itemprop="text"> <h1 class="headport1">'. get_post()->post_title, '</h1> <div class="portman1">' . get_post()->post_content . '</div></div>';

          no matter if I use text or visual editor. either way all html is being stripped and text merged together. however bold, ul and li are working fine.

          #16095
          Joseph
          Customer

            I figured it out, I was able to make it working by changing the function on the portfolio page to this:

            add_action( 'genesis_before_loop', 'epik_do_portfolio_content' );
            function epik_do_portfolio_content() {
            	
            	$content = get_post( $posts_page )->post_content;
            	$content_output = wpautop( $content );
            	
                echo '<div class="entry-content entry-portfolio" itemprop="text"> <h1 class="headport1">'. get_post()->post_title, '</h1> <div class="portman1">' . $content_output . '</div></div>';
            	
            	
            }
            #16097
            Wes
            Moderator

              I’m guessing it was the custom code that you added that probably caused the issue. Great job figuring it out! Just let us know if you need anything else.

              Also, feel free to add your site to the showcase (coming soon) whenever you’re done – https://appfinite.com/showcase-your-site ……It’s looking good so far. Keep up the great work!

            Viewing 5 posts - 1 through 5 (of 5 total)
            • You must be logged in to reply to this topic.