b-rad
Forum Replies Created
-
Forum: Hacks
In reply to: Passing Arguments to add_action?Hmmm, either I’m doing it wrong or it doesn’t work. I tried
$hook_array = array('publish_page','trash_page'); foreach($hook_array as $hook) { do_action($hook, $hook); add_action($hook, 'my_function', 10, 1); }I would think that doing it this way would allow me to pass the hook name to my_function but it doesn’t. Oddly enough, what seems to actually get passed to my_function is the page id.
Forum: Hacks
In reply to: How Do I Debug a Plugin?Yeah, this should do the trick.
Forum: Hacks
In reply to: How Do I Debug a Plugin?Progress made. I changed my config file to:
define(‘WP_DEBUG’, true);
define(‘WP_DEBUG_LOG’, true);
define(‘WP_DEBUG_DISPLAY’, true);
@ini_set(‘display_errors’,0);and put a debug.log file in my wp-content folder and made it writable by the web server and now I’m actually catching errors.
Forum: Hacks
In reply to: How Do I Debug a Plugin?Wow, can’t get more details? That seems pretty limiting. Like trying to code with your hands behind your back. I checked out http://codex.wordpress.org/Editing_wp-config.php which says to try changing the config file to:
define(‘WP_DEBUG’, true);
define(‘WP_DEBUG_LOG’, true);
define(‘WP_DEBUG_DISPLAY’, false);
@ini_set(‘display_errors’,0);but my log file gets no errors. This is frustrating. There has to be a better way to create a plugin, especially one that deals with db tables.
Forum: Fixing WordPress
In reply to: How Can I Rotate Content in the Sidebar?anyone?
Forum: Fixing WordPress
In reply to: Superscript and SubscriptNevermind, I figured it out.
Forum: Fixing WordPress
In reply to: Superscript and subscriptSame here. How do I add these back in? TinyMCE comes with these by default so where can I add them back in?
Forum: Networking WordPress
In reply to: Showing New Posts and Updated Blogs Only on Home PageThanks Andrea. Is there a tutorial on how to create a basic widget to use the code you had given me to display the names of recently updated blogs? Since my widgets are set to display in the sidebar, can a widget be setup to display the recently updated blog list in the main content area of the home page or will it end up in a sidebar with my other widgets? I guess I need a tag to tell me if the page being viewed is the “main” blog’s home page.
Can you tell me how to also display recent posts for all blogs in a multisite setup? Thanks.
Forum: Requests and Feedback
In reply to: Multi-User Home Page AggregationHow can I use the above code only on the multisite home page and not each individual blog’s home page? I looked at the WP conditional tags but I didn’t see anything that would allow me to target that one main page. Thanks.
Forum: Requests and Feedback
In reply to: Multi-User Home Page AggregationThanks!
Forum: Fixing WordPress
In reply to: Where Does WP Check the Login Password?Well I figured it out. If anyone ever needs to know just ask.
Forum: Fixing WordPress
In reply to: Where Does WP Check the Login Password?anyone?
Forum: Fixing WordPress
In reply to: Kanji Characters in Pingbacks Turn Into Question MarksThanks to no one for their help. Figured it out on my own.
Forum: Fixing WordPress
In reply to: Kanji Characters in Pingbacks Turn Into Question MarksAnyone?
Forum: Plugins
In reply to: [Plugin: WP-Paginate] Separating comments from trackbacksI haven’t given this a shot yet, but wouldn’t your suggestion only show comments and not trackbacks and pingbacks?