Uncaught Error: Call to undefined function get_user_by() after moving function from theme to plugin
Uncaught Error: Call to undefined function get_user_by() after moving function from theme to plugin
Uncaught Error: Call to undefined function get_user_by() after moving function from theme to plugin
The problem is that this only works when the widget is present in a sidebar. If you need some code to run independently from widget, I reason it makes sense to add that code separately from widget class. And I also need it to work when I call this widget with the_widget() function, for eg. … Read more
It appears that your posts titles do not link to the single post pages, they link to the archive page. By example, the lastest article “It really is that small” links to “http://www.paledogstudios.com/2010/10/04/”. The error should be in your theme index.php file.
This should do it, I think: function get_images() { global $post; $attachment = get_children(array( ‘post_parent’ => $post->ID, ‘post_type’ => ‘attachment’, ‘post_mime_type’ => ‘image’, ‘order’ => ‘ASC’, ‘numberposts’ => -1 ), ARRAY_N ); if ( $attachment ) { $attachment_count = count($attachment); foreach($i=0; $i < $attachment_count; $i++) { $last = ($i == ($attachment_count-1) ) ? ‘ last’ … Read more
Under Media / Edit, there’s a means to list them, so I suggest you reuse the existing API. Else, a general method, which works anywhere, is to run a db query with a left join: select ID from foo left join bar on whatever where condition and bar.ID is null;
There’s a different posts and comments table per site, so not really. That said, you can and should keep track of blog ids they’ve commented on in a user meta to speed things up in the first round, and cache the formatted result in a separate usermeta to speed things up in subsequent rounds. These … Read more
Call wp_get_sidebars_widgets(), and loop through each sidebar. Off the top of my head, text widgets have an ID like widget_text-$i.
This doesn’t require a WordPress modification per se, but if you prefer to do it that way, here is a decent tutorial: http://shibashake.com/wordpress-theme/wordpress-page-redirect. Some people would, however, prefer to do this via the .htaccess file, here is a quick guide on how to do redirects that way: http://perishablepress.com/press/2006/01/10/stupid-htaccess-tricks/#red1.
well if you updated and it didn’t work, try doing the fix manually as per this user “The solution I came up with was a serious hack, but there was no other way around it short of editing the plugin’s core code. Just stick this somewhere in your theme’s functions.php and it should work:” add_filter(“wpcf7_mail_tag_replaced”, … Read more
Indeed, get_usermeta() behaves differently from get_user_meta() and all the other get_*_meta() functions. That’s why it was deprecated. Unfortunately, the subtle differences couldn’t be explained properly in a deprecation notice.