Site logo

Archived topic

After Content (incorrect function)

9 replies · Started by Bill on April 17, 2018

Viewing posts 1–10 of 10

On the latest version of GP I’ve noticed that the function in page.php

do_action(generate_after_main_content)

Doesn’t work, it should be:

do_action(generate_after_content)

Working in local host

Thanks

Thanks for your fast reply as always, much appreciated.

Ah, I'm using, front-page.php and the original hook I took from page.php do_action(generate_after_main_content) didn't work, changing it to do_action(generate_after_content) works fine though, is that a bug?

Hey Tom,

Looks like it was that NexGEN Gallery again.. Gets me everytime.

Might be worth putting a warning that the plugin is not compatible with GP until they fix it.

Thanks for your time.

That is not correct, sorry.

What about it didn't work? If you have a function hooking into generate_after_content, then calling generate_after_main_content won't work. The hook names need to match up between the template and the function.

What exactly was NextGen doing?

Sorry Tom, its been one of those days..

I tried to put some code into After Content in GP Hooks but it wouldn't show.

It does however work if I change to generate_after_content in front-page.php

Thanks

Ah, got it. Hooks is getting a total makeover which will allow you to use any hook that exists in the theme. Should make it waaay easier :)

Sounds great, thanks a lot for your help, love the theme and plugin, keep up the hard work :)

Thank you! :)

This archived topic is closed to new replies.