WordPress.org

Ready to get started?Download WordPress

Forums

Where to access the_content() (2 posts)

  1. q1221q
    Member
    Posted 1 year ago #

    i am trying to find out the variable name used in the_content(), due to which image is displayed in the post.

    I need to know what varible in the the_content() was responsible for storing the image link (<img src" "> tag) which then gets displayed in our post.

    for reference purpose following output is shown.
    As seen from browser The ouput of the_content() is as under--

    <div class="entry-content-single">
    			<div class="singleads">
    			</div>
    			<h3><a href="http://www.amazon.com/Nike-Zoom-Edition-Skate-Shoes/dp/B0DFGXY%3FSubscriptionId%3FGTYHTKB47OFA%26tag%3Dfrgbgrdtg0-20%26linkCode%3Dxm2%26camp%3D4545%26creative%3D165953%26creativeASIN%3DB00BX15IXY" rel="nofollow">Nike Zoom Team Edition Skate Shoes Blue Mens</a></h3>
    <p><a href="http://www.amazon.com/Nike-Zoom-Edition-Skate-Shoes/dp/B00BX15IXY%3FSubscriptionId%3DWSEDRFFA%26tag%3Dfroplufordo00-20%26linkCode%3Dxm2%26camp%3D345%26creative%3D1543%26creativeASIN%3DB00BX15IXY" rel="nofollow"><img style="float:left;margin: 0 20px 10px 0;"
    <strong>src="http://ecx.images-amazon.com/images/I/416EoTC-8GL._SL160_.jpg" </strong>
    
    alt="Nike Zoom Team Edition Skate Shoes Blue Mens" /></a></p>
    <ul>
    <li>This shoes / sandals / boots style name or model number is Zoom Team Edition</li>
    <li>Color: Atlantic Blue/Tangier Orange</li>
    <li>Material: Nubuck Upper and Rubber Outsole</li>
    <li>Measurements: 1″ heel</li>
    <li>Width: D</li>
    </ul>
    <p>The Nike Zoom Team Edition shoes feature a nubuck upper with a round toe. The rubber outsole lends lasting traction and wear.</p>
    <p><div style="float:right;"><a href="http://www.amazon.com/Nike-Zoom-Edition-Skate-Shoes/dp/B00BX15IXY%3FSubscriptionId%3DAKIASCFVFVF47OFA%26tag%3Dfrfvfdordfd-20%26linkCode%3Dxm2%26camp%3D235%26creative%3D16543%26creativeASIN%3DB00BX15IXY" rel="nofollow"><img src="http://step-games.com/am1/wp-content/plugins/WPRobot3/images/buynow-big.gif" /></a></div>
    <p>List Price: $  70.00</p>
    <p><strong>Price: $  70.00</strong></p>
  2. gabrielcastillo
    Member
    Posted 1 year ago #

    You can find the source code here: Link

    I believe what you are looking for may not be in the_content() function, you should look in your template file.

    This line of code is incorrect, I believe the issues is in the template file and not the the_content() function. Check the loop for any thumbnail functions. Thumbnail functions have to do with images. If the code below is being generated from the_content() function, then check your page/post content. I believe your html markup is incorrect.

    <strong>src="http://ecx.images-amazon.com/images/I/416EoTC-8GL._SL160_.jpg" </strong>

Topic Closed

This topic has been closed to new replies.

About this Topic