Andy Mercer
Forum Replies Created
-
Forum: Plugins
In reply to: [Featured Galleries] Compatible with all Post Types?Hey, I should have documented this in the Description, but you can do this easily already. Add this code to your theme’s function.php file:
function add_featured_galleries_to_ctp( $post_types ) { return array( 'ctp_slug' ); } add_action( 'fg_post_types', 'add_featured_galleries_to_ctp' );
The fg_post_types is an action you can hook into to add your CTP to the list of types that Featured Galleries appear on.
Forum: Reviews
In reply to: [Featured Galleries] Great plugin for Theme DevelopersThanks, I appreciate the kind words! I’ve had a difficult time trying to figure l18n, unfortunately. It’s on my list of things to look into eventually, though.
Forum: Plugins
In reply to: [Admin Classic Borders] Admin Bar height in frontendI just pushed v1.5, with all the changes discussed here including the search form bug you reported. Thanks for that! I never use search so I didn’t even notice. Thanks for the help, I mentioned it in the changelog. (Would you prefer to be referenced there by snih or zwene?)
Forum: Plugins
In reply to: [Admin Classic Borders] Admin Bar height in frontendI think I’ve got it working on my local site. I can’t upload a new version to the repository until tonight, though. If you’d like to test right now, you can either download a temp 1.4.9 version from:
https://www.andymercer.net/hosted/admin-classic-borders.zip
Or:
In the components/main.php file of the plugin, there are two times that
is_user_logged_in()
is called. Change both of those tois_admin_bar_showing()
.The only site that I have to test here has admin bar hidden on the front end entirely, so I can’t test, but this should work.
Forum: Plugins
In reply to: [Admin Classic Borders] Admin Bar height in frontendSorry, it’s been a few days longer than I’d planned. Real life is really hectic at the moment and I’ve been working late. This is still on my list, I promise.
Forum: Plugins
In reply to: [Admin Classic Borders] Admin Bar height in frontendI think I’ve figured out how to do this, so either tonight or tomorrow I’d like to get an update out.
Forum: Plugins
In reply to: [Admin Classic Borders] Admin Bar height in frontendI’m glad you like it! I’ve never thought about having it turned on while not logged in, but I’ll look into it.
Forum: Plugins
In reply to: WordPress 3.9 Calling Gallery Broken PluginFigured it out.
Forum: Plugins
In reply to: [Featured Galleries] PHP Notice on saving custom menuI’m glad I could help! If you like it, could you give a rating? Doesn’t even have to be 5 stars, lol, I just hate looking at 0 ratings of any kind.
Forum: Plugins
In reply to: [Featured Galleries] PHP Notice on saving custom menuAppreciate the help! I finally figured out what debug mode is (I guess I should have been using it all along) and saw how many errors my plugin was causing.
Looks like every time something was saved that wasn’t for the plugin, it was calling my save function and throwing an error. Worst case in menus! The new version I just uploaded fixes all error messages I can find in Debug mode, but I’ve only tested in 3.9, so I may have missed something. Please let me know if 1.2.3 fixes everything for you.
Will be fixed in next version going out tomorrow. Sorry this took so long!
Forum: Plugins
In reply to: [Featured Galleries] PHP Notice on saving custom menuJust to be sure I understand, this is correct, right?:
You have the plugin installed.
You go to Appearance -> Menus
You click Save Menu.
You get a notice near top of screen saying that error.Also what version of WP, what version of the plugin, what post types are you using it for, (post, page, custom types, etc). Do you have any featured galleries saved, or just have the plugin installed?
The above info will help me track it down more quickly. Thanks!
Forum: Plugins
In reply to: [Featured Galleries] PHP Notice on saving custom menuI’ll look into it tonight. I’ve got a lot of issues right now. This is NOT compatible with WP 3.9, at all. They have completely overhauled a lot of the media-views.js file, so it’s going to take me a bit to figure out how to update it. That said, the above should hopefully not take super long to fix.
Forum: Plugins
In reply to: Support Form Code/Pre CSS RequestAdditionally, plugin descriptions accept blocks of code via the 4 space rule of Markup. It appears that these forums do not. It would be great to add that capability, along with Previews (since we don’t have the ability to Edit), and the ability to use the
<img>
tag.Forum: Plugins
In reply to: [Featured Galleries] How to get images in Front-endget_post_gallery_ids($post->ID) returns a PHP array of image attachment IDs:
<?php $galleryArray = get_post_gallery_ids($post->ID); ?>
You can then use a foreach loop to display all of them, by using:
wp_get_attachment_image_src( $id, 'large',0 );
.