Forum Replies Created

Viewing 8 replies - 31 through 38 (of 38 total)
  • Thread Starter maxxd

    (@maxxd)

    Apologies all around – refreshing my API key got things working. Thanks so much for the help!

    Thread Starter maxxd

    (@maxxd)

    Weird…

    I’ve tried the twenty fifteen, twenty fourteen, twenty thirteen, and my own custom theme. As I said, I’ve deactivated all plugins except this one.

    The API key has been created and saved in the plugin’s settings page in the ‘Gallery Settings and Direction’ section, and when I manually replace the ‘PRIVATE’ value in the key parameter of the request URI with the saved API key, it works.

    The only output I get to console on page load is the following:

    YT API ready
    Setting up YT API events: _ytid_24945

    I’ll try refreshing my API key and uninstalling and reinstalling the plugin, all that normal stuff – if it works I’ll let you know.

    Thread Starter maxxd

    (@maxxd)

    Hi embedplus. The shortcode used is:
    [embedyt] http://www.youtube.com/embed?listType=playlist&list=UUK7IIV6Q2junGSdYK3BmZMg&layout=gallery[/embedyt]

    Again, without the ‘&layout=gallery’, the video appears as expected. Also, this happens with any channel.

    Unfortunately, the page is currently in development for a client and behind a password-protected gateway. It’d break contract to give out credentials.

    Thread Starter maxxd

    (@maxxd)

    Evan, thank you for taking the time to help out!

    It’s got to be something extremely simple that’s killing me – it’s still not working. I tried changing the name of the menu to header_menu and re-assigning my CPTs to it on the menus page. Nothing. So I assigned a page to the custom menu just to see if it was my CPT that was throwing things off. I’ve still got no menu…

    Thread Starter maxxd

    (@maxxd)

    Thank you – I gave it a shot; unfortunately I got no menu whether I use the class or plain function.

    Thread Starter maxxd

    (@maxxd)

    Actually, I’m working on a theme and honestly I’ve just gotten very used to working with classes in php. The ‘\’ is used in conjunction with namespaces to back out of the current namespace (in this case MyNamepsace).

    All that aside, just in case I actually commented out the call to the class method and put the function directly into the functions.php file, and did this:

    add_action('init','registerMenus');
    function registerMenus(){
        register_nav_menus(array(
            'header-menu'=>__('Header Menu')
        ));
    }

    Still no menu…

    Forum: Hacks
    In reply to: Custom menu walker question
    Thread Starter maxxd

    (@maxxd)

    In case anyone’s experiencing a similar issue, I didn’t figure out what I did wrong with my code, but I did find a hack around the entire thing here. I adapted it somewhat as such:

    functions.php:

    require_once('classes/FunctionClass.php');
    $fn = new MyDev\FunctionsClass();
    add_filter('walker_nav_menu_start_el',array($fn,'addSubbrandDescription'),10,2);

    classes/FunctionsClass.php:

    namespace MyDev;
    class FunctionsClass{
        public function addSubbrandDescription($output, $item){
            if(empty($item->description)){
                return $output;
            }
            return "{$output}<span class='thisisadescription'>".__($item->description)."</span>";
        }
    }

    Just to update the topic – I’m hoping at some point to figure out what it was that I was doing wrong in the custom walker code. Thanks again bcworkz for taking a look and offering suggestions!

    Forum: Hacks
    In reply to: Custom menu walker question
    Thread Starter maxxd

    (@maxxd)

    I appreciate you’re mentioning them!

    $args->slug returns ‘subbrand-menu’, which is expected, and when I print_r($menu), the menu option objects are the subbrand-menu menu. It’s just printing the floater menu instead.

    The backslashes are due to my using namespaces. I’ll check again on my encoding – I know that I set it to utf-8, but weird things happen sometimes. And I’ll try with the general not-equal-to instead of the exact match that I’m using (pretty sure I’ve tried that as well, but this has been kicking me in the head for a couple days and I may not have…)

    Thank you very much!

Viewing 8 replies - 31 through 38 (of 38 total)