using silverstripe data object concept in wordpress -


i new wordpress, come silvestripe development.

i have developed faq accordion has tittle , description.

in silverstripe create dataobject, relate desired page , output looping through records in template.

<div class="accordioncontainer"> <ul>     <% loop accordion %>    //loop data object                         <li>                   <h2 class="accordionheader"><a href="#">$title</a></h2>                   <div class='accordioncontent'>                      <div class ="accordionblock">                          $description                       </div>                   </div>               </li>                               <% end_control %>     </ul>       </div> 

how can achieved in wordpress??

thank in advance :)

although wp allows custom post types (like page types in silverstripe), looks relationships may need handled plugin.

there details of plugin here: http://wordpress.org/plugins/relation-post-types/ suggests 1 many relationships can achieved using ("rented houses connected agency")


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

php - joomla get content in onBeforeCompileHead function -