redeclipse
Forum Replies Created
-
Forum: Plugins
In reply to: [Media Library Assistant] Not displaying by Att. CategoryI’m sorry I’m not that familiar with PHP to that extent. For example I have this coding to show the number of posts in a category:
<?php $categories=get_categories('include=3'); if ($categories) { foreach($categories as $category) { echo '' . $category->count . ' Categories'; } } ?>I was just wondering if there was an equally simple way to call the number of images in an ATT Category as well. If it’s more difficult than that, I may not be able to implement it anyway. Thank you though.
Forum: Plugins
In reply to: [Media Library Assistant] Not displaying by Att. CategoryYes, I want to place the PHP code in the template. Basically have many images, some of which are in the “mobile” category. I’d like to display the amount in that category alone on a template. The page itself will only feature 40 imgaes, but I want to do a “40 out of ____ images thing,” the blank being the php code to call the number of images in that category.
Forum: Plugins
In reply to: [Media Library Assistant] Not displaying by Att. CategoryIt worked! Thank you so much!
I have one more question since I have your attention. Is there a PHP code to display the number of images in an ATT Category? I just need it to display the number count in the category for visitor purposes.
Thank you very much, once again.
Forum: Plugins
In reply to: [Media Library Assistant] Not displaying by Att. CategoryOkay, it’s a doozy of a list… Active Plugins:
Akismet
Better Recent Posts Widget
Category Posts Widget
Contact Form 7
Contact Form 7 – Dynamic Text Extension
Cudazi Scroll to Top
Custom Category Template
Custom Post Templates
Easy Image Display
Executable PHP widget
Facebook Comments
Facebook Thumb Fixer
Instapress
Login XChange
Media Library Assistant
Mobile Smart
Really Simple CAPTCHA
Redirect All Types
Regenerate Thumbnails
Reveal IDs
Simple Pagination
Simply Instagram
SlideZoom
Subscribe / Connect / Follow Widget
WordPress Importer
WP-Polls
WP-SNAP!
WP Gallery Custom Links
WP Hide Post
Youtube Sidebar WidgetForum: Plugins
In reply to: [Media Library Assistant] Not displaying by Att. CategoryHI David, thanks for the speedy response. Still no luck despite deactivating and even deleting the File Gallery Plugin. You can find it here: https://ww.wp.xz.cn/plugins/file-gallery/
Forum: Plugins
In reply to: [Media Library Assistant] Not displaying by Att. CategoryHi David, I have tried the
post_parent=allcode and that worked fine. It’s just having trouble reading att categories and tags. Here is the debug:mla_debug empty gallery, query = array ( 'attachment_category' => 'mobile', 'size' => 'icon', 'link' => 'file', 'mla_target' => '_blank', 'mla_viewer' => 'true', 'mla_debug' => 'true', 'mla_page_parameter' => 'mla_paginate_current', ) mla_debug $wp_filter[posts_where] priority = 10 filter name = 'file_gallery_add_library_query_vars' mla_debug $wp_filter[posts_where] priority = 2147483647 filter name = 'MLAShortcodes::mla_shortcode_query_posts_where_filter' mla_debug $wp_filter[posts_orderby] priority = 2147483647 filter name = 'MLAShortcodes::mla_shortcode_query_posts_orderby_filter' mla_debug WHERE filter = ' AND ( wp_term_relationships.term_taxonomy_id IN (25) ) AND (wp_posts.post_mime_type LIKE \'image/%\') AND wp_posts.post_type = \'attachment\' AND ((wp_posts.post_status = \'inherit\') OR (wp_posts.post_status = \'inherit\' AND (p2.post_status = \'inherit\')))' mla_debug modified WHERE filter = ' AND ( wp_term_relationships.term_taxonomy_id IN (25) ) AND (wp_posts.post_mime_type LIKE \'image/%\') AND wp_posts.post_type = \'attachment\' AND ((wp_posts.post_status = \'inherit\') OR (wp_posts.post_status = \'inherit\' AND (p2.post_status = \'inherit\')))' mla_debug ORDER BY filter, incoming = 'wp_posts.post_date DESC' Replacement ORDER BY clause = 'wp_posts.menu_order ASC, wp_posts.ID ASC' mla_debug posts_clauses filter = array ( 'where' => ' AND ( wp_term_relationships.term_taxonomy_id IN (25) ) AND (wp_posts.post_mime_type LIKE \'image/%\') AND wp_posts.post_type = \'attachment\' AND ((wp_posts.post_status = \'inherit\') OR (wp_posts.post_status = \'inherit\' AND (p2.post_status = \'inherit\'))) AND wphptbl.post_id IS NULL ', 'groupby' => 'wp_posts.ID', 'join' => ' INNER JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) LEFT JOIN wp_posts AS p2 ON (p2.ID = p2.ID) LEFT JOIN wp_postmeta wphptbl ON wp_posts.ID = wphptbl.post_id and wphptbl.meta_key like \'_wplp_%\' AND ((wp_posts.post_type = \'post\' AND wphptbl.meta_key not like \'_wplp_%\' ) OR (wp_posts.post_type = \'page\' AND wphptbl.meta_key <> \'_wplp_page_flags\' AND wphptbl.meta_key not like \'_wplp_%\' ))', 'orderby' => 'wp_posts.menu_order ASC, wp_posts.ID ASC', 'distinct' => '', 'fields' => 'wp_posts.*', 'limits' => '', ) mla_debug posts_clauses_request filter = array ( 'where' => ' AND ( wp_term_relationships.term_taxonomy_id IN (25) ) AND (wp_posts.post_mime_type LIKE \'image/%\') AND wp_posts.post_type = \'attachment\' AND ((wp_posts.post_status = \'inherit\') OR (wp_posts.post_status = \'inherit\' AND (p2.post_status = \'inherit\'))) AND wphptbl.post_id IS NULL ', 'groupby' => 'wp_posts.ID', 'join' => ' INNER JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) LEFT JOIN wp_posts AS p2 ON (p2.ID = p2.ID) LEFT JOIN wp_postmeta wphptbl ON wp_posts.ID = wphptbl.post_id and wphptbl.meta_key like \'_wplp_%\' AND ((wp_posts.post_type = \'post\' AND wphptbl.meta_key not like \'_wplp_%\' ) OR (wp_posts.post_type = \'page\' AND wphptbl.meta_key <> \'_wplp_page_flags\' AND wphptbl.meta_key not like \'_wplp_%\' ))', 'orderby' => 'wp_posts.menu_order ASC, wp_posts.ID ASC', 'distinct' => '', 'fields' => 'wp_posts.*', 'limits' => '', ) mla_debug query = array ( 'attachment_category' => 'mobile', 'post_type' => 'attachment', 'post_status' => 'inherit', 'post_mime_type' => 'image', 'nopaging' => true, 'ignore_sticky_posts' => true, 'no_found_rows' => true, ) mla_debug request = 'SELECT wp_posts.* FROM wp_posts INNER JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) LEFT JOIN wp_posts AS p2 ON (p2.ID = p2.ID) LEFT JOIN wp_postmeta wphptbl ON wp_posts.ID = wphptbl.post_id and wphptbl.meta_key like \'_wplp_%\' AND ((wp_posts.post_type = \'post\' AND wphptbl.meta_key not like \'_wplp_%\' ) OR (wp_posts.post_type = \'page\' AND wphptbl.meta_key <> \'_wplp_page_flags\' AND wphptbl.meta_key not like \'_wplp_%\' )) WHERE 1=1 AND ( wp_term_relationships.term_taxonomy_id IN (25) ) AND (wp_posts.post_mime_type LIKE \'image/%\') AND wp_posts.post_type = \'attachment\' AND ((wp_posts.post_status = \'inherit\') OR (wp_posts.post_status = \'inherit\' AND (p2.post_status = \'inherit\'))) AND wphptbl.post_id IS NULL GROUP BY wp_posts.ID ORDER BY wp_posts.menu_order ASC, wp_posts.ID ASC ' mla_debug query_vars = array ( 'attachment_category' => 'mobile', 'post_type' => 'attachment', 'post_status' => 'inherit', 'post_mime_type' => 'image', 'nopaging' => true, 'ignore_sticky_posts' => true, 'no_found_rows' => true, 'error' => '', 'm' => 0, 'p' => 0, 'post_parent' => '', 'subpost' => '', 'subpost_id' => '', 'attachment' => '', 'attachment_id' => 0, 'name' => '', 'static' => '', 'pagename' => '', 'page_id' => 0, 'second' => '', 'minute' => '', 'hour' => '', 'day' => 0, 'monthnum' => 0, 'year' => 0, 'w' => 0, 'category_name' => '', 'tag' => '', 'cat' => '', 'tag_id' => '', 'author_name' => '', 'feed' => '', 'tb' => '', 'paged' => 0, 'comments_popup' => '', 'meta_key' => '', 'meta_value' => '', 'preview' => '', 's' => '', 'sentence' => '', 'fields' => '', 'menu_order' => '', 'category__in' => array ( ), 'category__not_in' => array ( ), 'category__and' => array ( ), 'post__in' => array ( ), 'post__not_in' => array ( ), 'tag__in' => array ( ), 'tag__not_in' => array ( ), 'tag__and' => array ( ), 'tag_slug__in' => array ( ), 'tag_slug__and' => array ( ), 'post_parent__in' => array ( ), 'post_parent__not_in' => array ( ), 'suppress_filters' => false, 'cache_results' => true, 'update_post_term_cache' => true, 'update_post_meta_cache' => true, 'posts_per_page' => 5, 'comments_per_page' => '50', 'taxonomy' => 'attachment_category', 'term' => 'mobile', 'order' => 'DESC', ) mla_debug post_count = 0Forum: Plugins
In reply to: [File Gallery] Image Link TargetI’m sorry, nevermind, I’ve figured out another way to do it.
I do have another problem though. In one of my pages I’ve decided to attach a few hundred images. It ends up slowing down the loading time of the page itself. Are the images all loading at once, causing this?
Forum: Plugins
In reply to: [Pagination For Posts] Fixed button positionYep, needed a reinstall. Thanks, looks great!
Forum: Plugins
In reply to: [Pagination For Posts] Fixed button positionAfter checking off the “Carousel Buttons Arrows Fixed Position” and Saving, nothing would happen and the checked off box is unchecked again. I had simply updated the plugin. Did I have to delete all files and reinstall for it to work?
Forum: Plugins
In reply to: [Pagination For Posts] Fixed button positionYes, this plugin would work a lot better on mobile devices if the next/prev button were fixed. (Since there is no hovering.)
This plugin is amazing btw, GJ. 😀