Andy Mercer
Forum Replies Created
-
Forum: Plugins
In reply to: [Featured Galleries] images doesn't show up after Ajax callI’ve been thinking further about the different possibilities of what you could have meant, and none of them really make any sense with this plugin.
My suggestion is to review the PHP code that you wrote to output the gallery, but more importantly review any Javascript that you have written to manipulate it.
Forum: Plugins
In reply to: [Featured Galleries] images doesn't show up after Ajax callThe only javascript in this plugin is on the admin side. On the front end, all I do is provide PHP functions to get the list of image IDs associated with a specified post.
Your question isn’t very clear though. What are you sorting? A post list in admin? If so, the gallery shouldn’t be displaying anyway, because it’s just a text list. On the front end?
Forum: Plugins
In reply to: [Featured Galleries] Function.php array syntaxAnything after a “return” line doesn’t run, because return finishes up any function that it’s inside of.
Put the var_dump before the return. Also, write
echo 'THIS IS BEFORE VAR DUMP';
before the var_dump line. Then in the page source, you can look for that text, and what follows is the var_dump.Forum: Plugins
In reply to: [Featured Galleries] Function.php array syntaxSince I haven’t heard back from you, I’m assuming that you figured out the issue, and I’m marking this as resolved.
Forum: Plugins
In reply to: [Featured Galleries] Function.php array syntaxHey, it’s been a couple days. Have you had a change yet to try out the var_dump?
Forum: Plugins
In reply to: [Featured Galleries] Function.php array syntaxI hate this board. My comment just got swallowed. Short answer is:
var_dump( $post_types )
Put it in the add_featured_galleries_to_ctp function. It’ll print information out near the top of the page (use view page source to find it)
Forum: Plugins
In reply to: [Featured Galleries] Function.php array syntaxRight now you have:
function add_featured_galleries_to_ctp( $post_types ) { array_push($post_types, array('gd_place','gd_bands')); return $post_types; } add_filter('fg_post_types', 'add_featured_galleries_to_ctp' );
Try switching the push line to this:
array_push( $post_types, 'gd_place', 'gd_bands' );
Based on this:
https://php.net/manual/en/function.array-push.php
Let me know if that fixes it. If not, we need to look at what $post_types is starting as. So we’ll want to do an array dump and print it out.
Forum: Plugins
In reply to: [Featured Galleries] Function.php array syntaxCould you copy and past here the entire function in question? From the error it sounds like the $post_types variable isn’t properly coming in.
Forum: Plugins
In reply to: [Featured Galleries] Function.php array syntaxI’ll test it out this evening.
Forum: Plugins
In reply to: [Featured Galleries] Creating Featured Gallery on the flyThing just glitched on my 3 paragraph reply, so here is short version:
No conflict with database tables (FG uses properly prefixed post metadata).
Only possible conflict is if the theme creates it’s own custom backbone views.
Forum: Plugins
In reply to: [Contact Form 7] Bug: Using [your-email] in Custom Header Throws ErrorThe email field had been changing to email-341, rather than your-email. Once I changed them to match, it works. False alert, marking as resolved.
Forum: Plugins
In reply to: [Featured Galleries] Only show in post gallery categoryAdd background-size:cover. That fixes it.
Marking this as resolved, given your lack of response.
Forum: Plugins
In reply to: [Featured Galleries] Only show in post gallery categoryThat’s great, I’m glad you got it working.
Regarding scriibe, take a look at it on a 1080p monitor, the header background image stops being full width at about 1850px width.
I honestly have no idea what you are trying to ask. Could you try to explain it again?