Forum Replies Created
-
AuthorPosts
-
Hi, I’ve found the problem. I had this in my functions.php:
——————————————————–
add_action( ‘admin_init’, ‘restrict_admin’, 1 );
function restrict_admin() {
if ( ! current_user_can( ‘manage_options’ ) ) {
wp_redirect( site_url() );
exit;
}
}
——————————————————–
Don’t understand why it was interfering with mappress ajax, but this was the cause…
@jeffreygrant Hi, did succeeded in making it work not logged as admin?!…
Hi Chris, unfortunately I can’t give access to the site at this stage… Is there anything else I can do to find what’s happening? If I do a PHP wpquery the data is obtained (either not logged in, or logged as subscriber). With the mashup, it stays with the “loading” box and nothing happens… Every page and content is published and not private or draft. I don’t know if it is relevante but I’m doing a mashup over a custom post type, containing custom fields and custom taxonomy.
I’ve just checked that, with the PHP query, I get all the data! The mappress mashup only works when I’m logged in as administrator. Doesn’t work when logged in as any other role or not logged in at all… Any help?!…
It happens something similar to me… When I’m logged in as administrator I can see the mashup. When I’m logged in as subscriber I can’t… But I can always see an isolated map… No membership plugins active.
Hi Chris, thank you for the feedback. I was trying to avoid creating duplicate CSS classes just to cover for the links, because I’m intending to use the buttons I already have. Concerning the “X” I think it could be really useful to be able to define what one wants there. Regards
Hi, display:none or visibility:hidden will both hide the icon-font… So no solution for now. I think you should consider in the futur to have this configurable via template or something.
There is another question regarding mapp-links and the a links: is it possible to add css classes to the links? Javascript? Via template, doesn’t seem possible.
Hi, tkx for the feedback. If I do display:none, also the icon-font is removed… The ideal situation was to remove the “X” from the DIV, either by template or by javascript. From CSS I haven’t found any solution (only getting the text transparent, but the X is still there)…
-
AuthorPosts
