WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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 have pulled Category Description data

        $taxonomies=  array('taxonomy'=>'area-type');
        $terms = get_terms($taxonomies,'orderby=id&hide_empty=0');
        $count = count($terms);
        if ($count > 0) {
                foreach ($terms as $term) {

                    $id =str_replace("#","",$term->slug);
                    $term_desc .= '<div id="nav_menu_desc_'. $id . '"class="section hidden formateIt">'. wpautop($term->description) .'</div>';    
                    echo $term_desc ;   
        }   ?> 

And did show hide on click on a Category plus added #categoryName in url so client feel that it's a different page.

Sorry for this i am fresher in wordpress. So now problem is that they need Category Detail page which i have display with show hide they want that in search result how can i achieve this

Page link e.g : www.sitename.com/PageType

On Click of Category it's turn to www.sitename.com/PageType#CategoryName

Sorry i was not able to add Category in before page name and now they have added 50 pages and i have to fix this

share|improve this question

Hope this will match your question : create a search page. To customize search results you have to add a file called search.php to your theme.

share|improve this answer
My problem is i want get www.sitename.com/PageType#CategoryName in search result which i have achieve with jquery – Mikul Gohil Jun 13 '13 at 7:19

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.