polyfade
Forum Replies Created
-
Forum: Plugins
In reply to: [Imsanity] Imsanity producing internal server errorSeems to be a plugin conflict. It was just odd how it was working a moment before without error, then all of a sudden…
Forum: Plugins
In reply to: [Search & Filter] Search & Filter Error with WP 4.1I posted this question to the Roots forum.
https://discourse.roots.io/t/search-filter-plugin-with-roots/2757It turns out Roots’ Theme Wrapper doesn’t play well with Search & Filter. So, looking around I came across a PHP function,
ob_start
.Placing
<?php ob_start(); ?>
inside Roots’ template, base.php as the very first line will get Search & Filter to behave as intended.However, I can’t say for sure if this will work with Search & Filter Pro.
Forum: Plugins
In reply to: [Search & Filter] Search & Filter Error with WP 4.1I tried a fresh Roots install to be sure. My issue seems Roots-related as Search&Replace works with WP’s own TwentyFifteen theme.
Forum: Plugins
In reply to: [Custom Content Shortcode] Repeater within a repeaterThanks a bunch Eliot!
Forum: Plugins
In reply to: [Contact Form 7] Ajax loader JS present but always invisibleHere’s the link to the form.
(Sorry, for the indirect link. I need to post this with discretion.)Forum: Plugins
In reply to: [Custom Post Type UI] Dashicon requestSorry, about that. I overlooked it. Under ‘Advanced Options’ > ‘Menu Icon’
Forum: Plugins
In reply to: [Flickr API] Not working with WP 4.xInspecting the image errors further, it looks like it has issues getting the thumbnails.
First of all, it’s not even trying to get the thumbnail size, rather it’s calling for the full size photos instead and using them as thumbnails inside the div
galleria-thumbnails
Forum: Plugins
In reply to: [Flickr API] Not working with WP 4.xWhen choosing the Galleria option, I receive a bunch of error messages:
Could not extract width/height from image: https://farm4.static.flickr.com/3911/15361774315_e28fbdc08c_m.jpg. Traced measures: width:0px, height: 0px.
Forum: Plugins
In reply to: [Flickr API] Not working with WP 4.xI see, this really needs your SCREEN NAME, not Flickr ID.
This did NOT work taking the Flickr ID from here:
https://www.flickr.com/photos/myusername/Forum: Fixing WordPress
In reply to: Restrict Media access to authors with WP v4.xI’ve found this solution to somewhat work, but without the number of media items being relative:
//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( 'edit_others_posts' ) ) { //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' ); add_action('pre_get_posts','ml_restrict_media_library'); function ml_restrict_media_library( $wp_query_obj ) { global $current_user, $pagenow; if( !is_a( $current_user, 'WP_User') ) return; if( 'admin-ajax.php' != $pagenow || $_REQUEST['action'] != 'query-attachments' ) return; if( !current_user_can('edit_others_posts') ) $wp_query_obj->set('author', $current_user->ID ); return; }
For some reason, this works
!current_user_can( 'edit_others_posts' )
but this does not,!current_user_can( 'manage_media_library' )
Forum: Plugins
In reply to: [Custom Content Shortcode] ACF Image field not showing when in related tagI’m actually having the same issue and I have v 1.1.9 installed along side ACF v5.0.7 and WordPress v4.0.
I think I’m confused myself when addressing images from ACF, too.
For clarity, this works:
[field image="cover_image"]
and[content image="cover_image"]
If I have
Image Array
picked in ACF, then this DOES NOT work:[field image="cover_image" in="object"]
HOWEVER, if I have
Image Array
picked in ACF, then this works:[field image="cover_image" in="id"]
When choosing
Image Array
in ACF, this only outputs the Image ID number:[content field="cover_image" in="object"]
However, the two methods that do work output the same markup.
Example:<img width="460" height="380" src="https://mysite.com/wp-content/uploads/cover.jpg" class="attachment-full" alt="My Great Cover">
Is it possible just to pull the image url from the ACF image field because I want to customize the output further?
Forum: Fixing WordPress
In reply to: Using onChange event with wp_dropdown_usersThere’s probably a more efficient way of displaying the onChange event for
users
. This is what I came up with:<?php $args = array('selected' => 'false', 'name' => 'author', 'who' => 'authors', 'include' => '14,15,16'); $blogusers = get_users($args); ?> <form action="<?php bloginfo('url'); ?>" method="get"> <select id="select-of-tags" name="author" onchange="if(this.selectedIndex){location.href=(this.options[selectedIndex].value)}"> <option value="">View Authors…</option> <?php foreach ($blogusers as $user) {?> <option value="<?php bloginfo('url'); ?>/author/<?php echo $user->user_login ?>"><?php echo $user->display_name ?></option> <?php } ?> </select> </form>
Anyone have a better solution?
Interested too, I posted this question to the original developer.
You can follow it here:
https://github.com/samsono/Easy-Responsive-Tabs-to-Accordion/issues/48Forum: Plugins
In reply to: [Custom Content Shortcode] ACF regular fieldsNevermind, I figured it out. Example:
[content field="my_acf_field"]
Forum: Plugins
In reply to: [Search & Filter] Exclude Category from listDoes the pro version include the functionality to exclude authors as well as categories?