Title: categories and php
Last modified: August 18, 2016

---

# categories and php

 *  [flakkito](https://wordpress.org/support/users/flakkito/)
 * (@flakkito)
 * [22 years, 4 months ago](https://wordpress.org/support/topic/categories-and-php/)
 * Hi- i wonder if someone can help me out. In my site i use some php to identify
   the current page for my navigatiomay bar.
    <?php $thisPage=”Music”; ?> ive decided
   to move all of my site into wordpress and would like to know how i can use the
   above code with the categories.. something like: <?php $thisPage=”music category”;?
   > can someone point me toward something? also, while im asking- does anyone have
   an opinion on wether or not it’s a good or bad idea to use wordpress for all 
   of my sites content? should it be used primarily for the journal pages? i have
   heard its not good to tax the db too much, but would like all of my content to
   be searchable and have rss feeds. any ideas? thank you

Viewing 1 replies (of 1 total)

 *  [shure](https://wordpress.org/support/users/shure/)
 * (@shure)
 * [22 years, 4 months ago](https://wordpress.org/support/topic/categories-and-php/#post-33344)
 * i try to do the same but can find the why (php/wordpress noob)
    (re)searched 
   all the help docs… no clue in it to do the trick and a other thing; can you give
   a category 1 and category 2 an other template? thanks for your help

Viewing 1 replies (of 1 total)

The topic ‘categories and php’ is closed to new replies.

 * 1 reply
 * 2 participants
 * Last reply from: [shure](https://wordpress.org/support/users/shure/)
 * Last activity: [22 years, 4 months ago](https://wordpress.org/support/topic/categories-and-php/#post-33344)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
