Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Forum: Plugins
    In reply to: WordPress bible example
    Thread Starter lukich

    (@lukich)

    Sorry for all the spam, but just curious – how do you debug? I’m new to WP, so I want to find out about the good practices as possible early on.

    From what you have described and shown – there’s no way to tell. Here’s a suggestion – put a few echo and var_dump statements in different parts of the loop to see it it returns the info at all and if it returns the right info. Hope that helps,

    Luka

    Forum: Plugins
    In reply to: WordPress bible example
    Thread Starter lukich

    (@lukich)

    Nevermind, it worked. Human error 🙂 Thank you !

    Forum: Plugins
    In reply to: WordPress bible example
    Thread Starter lukich

    (@lukich)

    When I posted I noticed you added another response. That, unfortunately, doesn’t work either. But my request for your version of the code still stands. Also, what’s the correct procedure to debug/troubleshoot? Do I need to deactivate/reactivate the plugin as I make changes? Do I need to restart the server/db?

    Thanks again.
    Luka

    Forum: Plugins
    In reply to: WordPress bible example
    Thread Starter lukich

    (@lukich)

    Thanks for your suggestions. I still can’t get it to work. For some reason, whenever I change the last line to either

    add_action( 'load-plugins_page_copyright-notices', 'save_copyright_notices' );

    or

    add_action('admin_menu', 'save_copyright_notices'); and try to go to the plugin page, I get an “Are you sure?” message. Something is obviously wrong with the way I have it now.

    When investigating further, I found that using either one of these two actually throws a 403 error in Apache, so I changed it to

    add_action( 'load-plugins_page_copyright-notices.php', 'save_copyright_notices' );

    and it worked in a sense that I can get to the plugin page, but when I submit nothing really happens. At some point it did save the option name, but now it refuses to override it. Do you mind posting your block of code so I can compare them?

    Thanks a lot!
    Luka

    There’s a plugin for Firefox called Yslow, which shows you what you can change on the page. Your site got a D, there are quite a few places for improvement. Deflating your content on the server, using minified version of jquery and using CSS sprites should speed up your page.

Viewing 6 replies - 1 through 6 (of 6 total)