Forums

[Plugin: Exec-PHP] PHP in excerpts converts to URL hex encoding string (1 post)

  1. natnie
    Member
    Posted 2 years ago #

    Hi,

    Well the company I work for just converted our various sites to WordPress MU a little while back. I upgraded to the newest version today. I have Unfiltered MU in use in conjunction with Exec-PHP.
    It's not the best system for an online store, but my boss had me create one using WordPress. I used Excerpts for thumbnails and small blurbs with links to the main "post", which is the product description. The site is http://store.qcseminars.com

    Unfortunately, I attempted to add a product today which went haywire. Here is the code I attempted to use for the excerpt:

    <p>Price: <span class="price">$5,995</span>
    <a href="<?php the_permalink(); ?>">
    <img style="float:left;padding-right:5px" src="/files/2010/01/bbtt_Smalll.png" alt="Bigger Bite Trainers Training" />
    </a>
    <br />
    <br />
    The Simple and Easy Way to Become
    The Expert in Your Field... <a href="<?php the_permalink(); ?>">(more...)</a>
    </p>
    <div style="text-align:center;clear:both;padding-top:5px">
    <a href="<?php the_permalink(); ?>">
    <img src="/wp-content/themes/QCStore/images/but_info.gif" alt="Info" border="0" width="53" height="23">
    </a>
    <a href="http://programs.qcseminars.com/bigger-bite">
    <img src="/wp-content/themes/QCStore/images/but_buy.jpg" alt="Buy" border="0" width="55" height="23">
    </a>
    </div>

    And here is the code that came out in HTML:

    <h3 class="title">
    <a href="http://store.qcseminars.com/upcoming-events/bigger-bite-trainers-training" rel="bookmark" title="Permanent Link to Bigger Bite Trainer’s Training">Bigger Bite Trainer’s Training</a>
    </h3>
    <div class="entry">
    <p>Price: <span class="price">$5,995</span>
    
    <a href="%3C?php%20the_permalink%28%29;%20?%3E%E2%80%9C%3E%3Cimg%20style=" float:left;padding-right:5px="" src="/files/2010/01/bbtt_Smalll.png" alt="Bigger Bite Trainers Training"></a>
    </p>
    
    <p>The Simple and Easy Way to Become<br />
    The Expert in Your Field… <a href="%3C?php%20the_permalink%28%29;%20?%3E%E2%80%9C%3E%28more%E2%80%A6%29%3C/a%3E%3C/p%3E%0A%3Cdiv%20style=" text-align:center;clear:both;padding-top:5px=""></a>
    <a href="%3C?php%20the_permalink%28%29;%20?%3E%E2%80%9C%3E%3Cimg%20src=" wp-content="" themes="" qcstore="" images="" but_info.gif="" alt="Info" border="0" width="53" height="23"></a>
    <a href="http://programs.qcseminars.com/bigger-bite">
    <img src="/wp-content/themes/QCStore/images/but_buy.jpg" alt="Buy" border="0" height="23" width="55"
    ></a>
    </p>
    </div>
    
    <a class="post-edit-link" href="http://store.qcseminars.com/wp-admin/post.php?action=edit&post=283" title="Edit post">
    <span class="meta">Edit</span>
    </a>
    </div>

    As you can see, my PHP had issues.
    <a href="%3C?php%20the_permalink%28%29;%20?%3E%E2%80%9C%3E%3Cimg%20src=" wp-content="" themes="" qcstore="" images="" but_info.gif="" alt="Info" border="0" width="53" height="23"></a>

    What the heck is going on here? Can somebody please help?

    http://wordpress.org/extend/plugins/exec-php/

Topic Closed

This topic has been closed to new replies.

About this Topic