Timeline for Advanced Custom Fields Plugin - Unable to get URL from post_object
Current License: CC BY-SA 3.0
18 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 31, 2012 at 5:47 | answer | added | Quasimo | timeline score: 1 | |
Jan 20, 2012 at 19:46 | vote | accept | rpeg | ||
Jan 20, 2012 at 10:05 | answer | added | mor7ifer | timeline score: 2 | |
Jan 20, 2012 at 5:32 | comment | added | rpeg | You can view it here: estevancarlos.kodingen.com/ecv7/?projects=rada-2. Basically it pulls the Url of the "grid_thumb" for the current post. However I'm trying to get the URL for 'grid_thumb' for the 'related_projects' field. I'm not sure how to retrieve meta data from an outside post using this plugin. | |
Jan 19, 2012 at 10:36 | comment | added | mor7ifer | AH, I see, I thought you were having an issue with get_the_title(), alright, what does a print_r( get_field( 'grid_thumbnail' ) ) yield? | |
Jan 19, 2012 at 7:41 | comment | added | rpeg | I'm trying to do something like this: <img src="<?php echo get_field($post_object->grid_thumb); ?>"> Get a thumbnail src from a related post. | |
Jan 19, 2012 at 5:27 | comment | added | rpeg | Why not? Because I don't understand those details. | |
Jan 18, 2012 at 19:28 | comment | added | mor7ifer |
Why not use $post_object->title ? Are you just looking for the filters? Also, is the permalink working and just the title's broken?
|
|
Jan 18, 2012 at 17:45 | comment | added | rpeg | I am using the Advanced Custom Fields plugin. It comes from that. | |
Jan 17, 2012 at 6:02 | history | edited | Chris_O | CC BY-SA 3.0 |
added 90 characters in body
|
S Jan 17, 2012 at 6:02 | history | suggested | Dipesh KC | CC BY-SA 3.0 |
more readable
|
Jan 17, 2012 at 6:00 | review | Suggested edits | |||
S Jan 17, 2012 at 6:02 | |||||
S Jan 17, 2012 at 3:45 | history | suggested | mor7ifer | CC BY-SA 3.0 |
added return from print_r in case it does not exist in future
|
Jan 17, 2012 at 3:42 | comment | added | mor7ifer |
I'm inclined to believe, based on that, that the issue is in your get_field() , either that or you're having a variable name conflict with $post_object . get_field() is not a wordpress core function, where is that function coming from?
|
|
Jan 17, 2012 at 3:40 | review | Suggested edits | |||
S Jan 17, 2012 at 3:45 | |||||
Jan 17, 2012 at 2:08 | comment | added | rpeg | You can take a look here: estevancarlos.kodingen.com/ecv7/… | |
Jan 17, 2012 at 1:26 | comment | added | mor7ifer |
what does a print_r( $post_object ) give you? I have a feeling that $post_object is not a post object...
|
|
Jan 17, 2012 at 0:53 | history | asked | rpeg | CC BY-SA 3.0 |