0
votes
2answers
65 views

Wordpress Frontend Check If Current User Is Administrator

I am trying to check if current user that accessing a page if administrator using current_user_can(), but it is not working and returning this message instead: Fatal error: Call to undefined function ...
0
votes
0answers
25 views

Editing post in admin panel

I have a front end posting form. Everythings work nice, but the custom (meta) fields i added in the form doesn't appear in admin panel post edit? I add them with add_post_meta() function. Any ideas?
0
votes
2answers
63 views

How to disable accessing the custom post types from frontend via a link?

I am registering a custom post type like: /* POST TYPE: SECRET CARDS */ function register_post_type_secret_cards() { $args = array( 'labels' => array( ...
0
votes
0answers
115 views

Lock Display Name To Nickname

Using the following code to change the author url links to their nickname. The issue is it seem to be conflicting and trying to use the display name instead. Can i lock the display name to the ...
0
votes
0answers
35 views

display admin content in the public site

I would like to display the page list or post list (or similar from plugins) from the Admin section to logged in users on the front-end of my wordpress site. Any idea how I can do this? I need to ...
1
vote
2answers
611 views

is_admin() returns true when using admin-ajax.php from front end script

Had a situation today where I was using admin-ajax.php from a front end script. As I understand it this the wp way to make ajax calls (registering my function with the wp_ajax_nopriv_myfunction hook) ...
4
votes
1answer
414 views

front end logo upload like happytables

happytables has a cool feature where if you are logged in, on the home page && haven't uploaded a logo yet it will insert a drag + drop image box similar to image uploader on the backend. ...
2
votes
4answers
372 views

Conditional check for front-end which includes ajax

I need a conditional which exits if the context is not a front-end view including AJAX requests. I have this at the moment: if (is_admin() && !DOING_AJAX) return; The DOING_AJAX bit ...
0
votes
1answer
349 views

front end editing using iFrames, best approach?

I was going to give users back end access to edit entries but don't like the idea of them having access to the back end. I currently am using/developing with Adminize and Role Scooper and have set up ...
-1
votes
2answers
312 views

Are there any action like 'init_frontend'

I've found init and init_admin. Are there any action that executes just in the frontend? Thanks.