Scoodle
Forum Replies Created
-
Forum: Plugins
In reply to: How do I set a featured image (thumbnail) when using wp_insert_post()?Does anybody know?
Forum: Plugins
In reply to: How do I set a featured image (thumbnail) when using wp_insert_post()?Still looking for a solution :-/
Forum: Hacks
In reply to: Retrieving the current user location as a URL?Not the most elegenat solution, but it’ll have to do. Thank you for your efforts.
Forum: Hacks
In reply to: Retrieving the current user location as a URL?Thank you for your reply, but unlike the other OP, I know how to redirect. I just don’t know what function I could use to retrieve the URL of the page to redirect to. Serving $_SERVER[HTTP_REFERER] as the redirect_to argument for wp-login doesn’t seem like a good idea.
Forum: Hacks
In reply to: Outputting only an array with WordPress user data for an external application?Great, thank you so much!
Now I just need to find a way of hiding the page from the pages menu (this official tutorial didn’t work for me, child pages show up in my theme), but that’s another problem entirely. I consider this topic’s problem [SOLVED], cheers!Forum: Hacks
In reply to: Outputting only an array with WordPress user data for an external application?Perhaps I am. I’ve now put my page template (and the Vanilla PHP library, again) in the directory of the theme I actually use, instead of treating it as a theme on its own. Still can’t figure out how to call upon the page (template), though. Tried just going to /wp-content/themes/THEME-I-USE/userdata.php (userdata.php being the name of my page template), but the WordPress functions don’t get recognized this way:
Fatal error: Call to undefined function.Forum: Hacks
In reply to: Outputting only an array with WordPress user data for an external application?Thanks for the link, I’ve made a theme that will only output user data and put it in its own directory in the themes folder, along with a Vanilla PHP library that it requires.
Obviously, I don’t want to apply this template to my entire WordPress site. I can’t even do that because a .css file is apparently also required (one with only the theme name made it disappear from the theme management page, leaving it out makes WordPress say it’s missing). How should I link to it? Did I do something fundamentally wrong here?
Appreciate your help.
Forum: Hacks
In reply to: Outputting only an array with WordPress user data for an external application?Sorry for not explaining that. It’s a separate forum system which is simply called ‘Vanilla‘, and provides single sign-on (SSO) support to work with external user databases.