homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / Content Management
Forum Library, Charter, Moderators: ergophobe

Content Management Forum

Wordpress: get name by ID
Sarah Atkinson

 4:19 pm on Dec 30, 2009 (gmt 0)

I'm working on building a site using Wordpress as the CMS.
I have categories of 'complex' and 'units'
On the units single page I want to display the Complex that it goes to. I have the complex id defined in a custom field. But I don't know how to get the complex name by using that id.


Sarah Atkinson

 4:43 pm on Dec 30, 2009 (gmt 0)

Ok i figured it out. I used the function
$complex_array= get_post( $complex_id, 'ARRAY_A');

and then got it with

I wish the ref for wordpress functions was better. it's search function and navigation sucks.


 6:59 pm on Dec 30, 2009 (gmt 0)

Glad you sorted it. I know what you mean.

site:codex.wordpress.org function_name

search is your friend.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Content Management
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved