Title: Dynamic Category Title
Last modified: August 19, 2016

---

# Dynamic Category Title

 *  [houseof9](https://wordpress.org/support/users/houseof9/)
 * (@houseof9)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/dynamic-category-title/)
 * I’m trying to alter query so the category_name is equal to the Title of the Page
   plus the word “-resources”. Can anyone help with this?
 * <?php
    $my_query = new WP_Query(‘category_name=’page_title()-resources’&showposts
   =3’); while ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate
   = $post->ID;?>

The topic ‘Dynamic Category Title’ is closed to new replies.

## Tags

 * [category query](https://wordpress.org/support/topic-tag/category-query/)
 * [category title](https://wordpress.org/support/topic-tag/category-title/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [houseof9](https://wordpress.org/support/users/houseof9/)
 * Last activity: [16 years, 11 months ago](https://wordpress.org/support/topic/dynamic-category-title/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
