Title: Probably a simple PHP string solution &#8211; help?
Last modified: August 19, 2016

---

# Probably a simple PHP string solution – help?

 *  [ldexterldesign](https://wordpress.org/support/users/ldexterldesign/)
 * (@ldexterldesign)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/probably-a-simple-php-string-solution-help/)
 * Hey guys,
 * `<?php previous_post_link('%link', 'Previous in category', TRUE); ?>` ([http://codex.wordpress.org/Template_Tags/previous_post_link](http://codex.wordpress.org/Template_Tags/previous_post_link))
 * This is what I want to do:
    `<?php previous_post_link('%link', 'Previous in' .
   single_cat_title(), TRUE); ?>`
 * Are functions/variables allowed as parameters?
 * Thanks,

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Mark Ratledge](https://wordpress.org/support/users/songdogtech/)
 * (@songdogtech)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/probably-a-simple-php-string-solution-help/#post-1221113)
 * What excatly do you want to do? Have the previous/next link go to a specific 
   category?
 *  [shane-g](https://wordpress.org/support/users/shane-g/)
 * (@shane-g)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/probably-a-simple-php-string-solution-help/#post-1221147)
 * Hi,
 * Refer these articles:
 * [http://codex.wordpress.org/Template_Tags/previous_post_link](http://codex.wordpress.org/Template_Tags/previous_post_link)
   
   [http://codex.wordpress.org/Next_and_Previous_Links](http://codex.wordpress.org/Next_and_Previous_Links)
 * Thanks,
 * Shane G.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Probably a simple PHP string solution – help?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [shane-g](https://wordpress.org/support/users/shane-g/)
 * Last activity: [16 years, 8 months ago](https://wordpress.org/support/topic/probably-a-simple-php-string-solution-help/#post-1221147)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
