WordPress.org

Ready to get started?Download WordPress

Forums

Using the loop to fetch specific 's at certain areas of a template (1 post)

  1. rasmush
    Member
    Posted 3 months ago #

    Hello!

    I'm currently developing my business page in WordPress and I've stumbled upon a problem. I have a static front page which I would like to use the loop on to fetch specific <div> ID's of a page and echo them at specific places in the HTML hierarchy. I have no clue at all if this is possible (but I do believe it is possible) any ideas on how to solve this?

    http://gyazo.com/97f332b403de25f49f916ace02e0e696 this is how it looks when I don't use the loop to fetch the content.

    The code is:

    <div id="service_info">
    		<div class="span3">
    						<h3>Sökmotoroptimering</h3>
    							<p>Att ranka högt i sökmotorerna är ett kritiskt moment för att driva trafik till sin webbplats, genererar inte din hemsida
    							dem resultat du är ute efter? [Business name] erbjuder ett flertal olika tjänster inom sökmotoroptimering, vill du läsa mer om vårt arbete
    							med sökmotoroptimering, tryck här.
    							</p>
    					</div>

    </div>

    If I were to use a page and put this code in the "Visual". How would I use the loop to fetch that specific ID to that certain place in the hierarchy? The <div> I want to echo is <div id="service_info">.

    Thanks!

Reply

You must log in to post.

About this Topic