16 reputation
4
bio website
location
age
visits member for 2 years, 5 months
seen Sep 23 '12 at 13:35

Apr
5
awarded  Student
Apr
5
awarded  Teacher
Sep
3
awarded  Popular Question
Sep
23
awarded  Commentator
Aug
31
answered Checking if Post Title is Unique as Loop Criteria
Aug
29
comment Checking if Post Title is Unique as Loop Criteria
Can anyone help please?
Aug
23
asked Checking if Post Title is Unique as Loop Criteria
Aug
2
comment get_page_by_title() not returning anything
That's cool, it's working for me so I'll just run with it! Thanks again bud.
Jul
18
comment get_page_by_title() not returning anything
Ok bud thanks for the advice. Could you answer one more simple thing for me please? Is there any problem with achieving this the way I found that works and just use the SQL query version? Any precautions I need to take or will it be fine just not to elegant. Thanks again for all your help bud :-)
Jul
18
comment get_page_by_title() not returning anything
Hi Max, I specifically sought out the code that was basically what get_page_by_title() contained to test it, how weird is this though? I've tried your suggestions and no matter what I try it will not work! I've done nothing to any Wordpress Core files and as far as I know my plugin's are doing nothing weird. The only reference to the function outside of the core definition is in the Types plugin and it is using it the same way I'm trying to just a bit more complex, no redefiniton. $exists = get_page_by_title($_POST['wpcf']['group']['name'], 'OBJECT', 'wp-types-group');
Jul
17
comment get_page_by_title() not returning anything
Sorry, I'm having difficulty with the formatting of these responses
Jul
17
comment get_page_by_title() not returning anything
Even weirder, this works perfectly: add_filter('gform_field_value_parent_id', 'parent_id'); function parent_id() { global $wpdb; $posttitle = 'TESTID'; $postid = $wpdb->get_var( "SELECT ID FROM $wpdb->posts WHERE post_title = '" . $posttitle . "'" ); return $postid; }
Jul
17
comment get_page_by_title() not returning anything
Nothing's working! Don't you just hate it when this happens! Any other ideas bud? As it is debugging is giving me nothing, do you perhaps know another way of checking this we can try? Oh one other thing when I try to use 'return $page->post_parent' or -> anything it gives me this error: Notice: Trying to get property of non-object in C:\xampp\htdocs\mydoctorschemist\wordpress\wp-content\themes\MyTheme\functions\g‌​forms.php on line 69
Jul
17
comment get_page_by_title() not returning anything
Thanks for your reply, I've tried what you said and I don't know if I'm being too literal but what form do you think OBJECT should take? I assumed it was as you'd written it here but that causes a php error (I've always had debugging turned on, it just didn't give me an error before): Catchable fatal error: Object of class stdClass could not be converted to string in C:\xampp\htdocs\mydoctorschemist\wordpress\wp-includes\formatting.php on line 510 Also the Wordpress Codex show it being used without all three calls codex.wordpress.org/Function_Reference/get_page_by_title. Thanks :-)
Jul
17
asked get_page_by_title() not returning anything