WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to make a list of a spesific post category title. In this list I want the reveal function from Foundation to open the post + its title.

How do I make this? I'm kinda new to making loops and builing custom things in the function-area.

This is the code of the list right now:

<div class="behandlingsformer">
<li class="button expand"><a data-reveal-id="fysio" data-reveal>1</a></li>
<li class="button expand"><a data-reveal-id="chien" data-reveal>2</a></li>       

Would be great with some help (:

share|improve this question
Generated markup is not very helpful. Please post the PHP source code. – s_ha_dum Mar 13 '14 at 14:41
This is only the code I'm using right now to get the reveal-modal to work within my list. I need some help figuring out how to implement this in function.php(?) to loop a category-title-list that will outcome like the code I added in the first post. – user48894 Mar 13 '14 at 16:56

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.