Miatsu
Forum Replies Created
-
Forum: Plugins
In reply to: [User Access Manager] User groups not assignable after updatesHello !
We are also having this issue.
Some posts access are blocked with a groud restriction and we can uncheck that group.When will there be a fix to this bug ? Or can we access to an older version of the plugin who doesn’t cause this bug in the meantime ?
Here is the solution !
With this you can display the names and dates of the three coming events.
<?php $EM_Events = EM_Events::get( array('scope'=>'future', 'orderby'=>'event_start_date', 'limit'=>3 ) ); foreach ($EM_Events as $EM_Event): echo '<strong>' . $EM_Event->output("#_EVENTNAME").'</strong><br/>'; echo '<p>' . $EM_Event->output('#_EVENTDATES') . '</p>'; endforeach; ?>I’ve just found how to display the events information in my page template.
I just needed to add this and it worked :
<?php global $post; $EM_Event = em_get_event($post->ID, 'post_id'); echo $EM_Event->output('#_EVENTNAME'); ?>But I still can’t get the right query to display the three next events to come.
Forum: Fixing WordPress
In reply to: GIF that wont animateHi!
I have the same issue, my gif works fine, and I can see it works in the admin panel but not once publish on my site.
I’ve verified and I’ve no resizing issue.
Does anybody have a solution?
Hey,
I’ve got the same problem, I wanted the author to only see and edit their own posts and own media. I find this code that you can place at the beginning of your functions.php
//restrict authors to only being able to view media that they've uploaded function ik_eyes_only( $wp_query ) { //are we looking at the Media Library or the Posts list? if ( strpos( $_SERVER[ 'REQUEST_URI' ], '/wp-admin/upload.php' ) !== false || strpos( $_SERVER[ 'REQUEST_URI' ], '/wp-admin/edit.php' ) !== false ) { //user level 5 converts to Editor if ( !current_user_can( 'level_5' ) ) { //restrict the query to current user global $current_user; $wp_query->set( 'author', $current_user->id ); } } } //filter media library & posts list for authors add_filter('parse_query', 'ik_eyes_only' );I hope it will help!