101 reputation
1
bio website
location
age
visits member for 2 years, 7 months
seen Apr 29 at 3:20

Apr
29
asked Converting from Joomla to Wordpress: Hot Property extension
Jan
28
awarded  Commentator
Jan
28
comment Getting category URL with hyphens, not spaces
None of these worked I'm afraid.
Jan
28
comment Getting category URL with hyphens, not spaces
@ShreyoGi - yes, the first option: <a href="/category/random-category">Random Category</a>
Jan
28
comment Getting category URL with hyphens, not spaces
This seems to be the closest I've got! Now it is outputting the text like this: random-category (instead of Random Category). Using it like this: <a href="/category/<?php foreach((get_the_category()) as $category) { echo $category->slug . ' '; } ?>"><?php foreach((get_the_category()) as $category) { echo $category->slug . ' '; } ?></a>
Jan
28
comment Getting category URL with hyphens, not spaces
Thanks for the answer but I can't seem to get it to work. It is outputting the name but not the link. How would I use this to replace my code above?
Jan
28
asked Getting category URL with hyphens, not spaces
Jan
22
comment Custom Post Field -> Returning only the word “array”
No, but this is how the other lines are working to retrieve other fields like employee name and position. It is in a template for "employees"... (Jupiter theme: mk_employees.php (shortcodes/mk_employees.php) )
Jan
22
comment Custom Post Field -> Returning only the word “array”
OK, I got this: string(0) ""
Jan
22
comment Custom Post Field -> Returning only the word “array”
Seems like anywhere I put that I get a blank page I'm afraid...
Jan
22
asked Custom Post Field -> Returning only the word “array”