Henry
Forum Replies Created
-
Forum: Plugins
In reply to: [Theme My Login] Error message when visiting wp-login.phpI actually don’t get the error any more.
Forum: Fixing WordPress
In reply to: Different static front page for logged in and logged out usersHey guys thanks for the ideas. I ended up opting to programmatically set the front page to something different for logged in users. e.g.
if ( is_user_logged_in() ) { $page = get_page_by_title( 'contact us' ); update_option( 'page_on_front', $page->ID ); update_option( 'show_on_front', 'page' ); } else { // different front page... }
Forum: Plugins
In reply to: [Yoast SEO] PHP Notice after successful avatar upload on BuddyPressjrf
regarding your validation check, are you thinking of doing
if ( $post != null ) { ... }
?I’ve been doing some investigation and can see you’re using an
is_singular()
check around the code attempting to get the$post
property.is_page()
seems to return true for the BuddyPress change-avatar page (where there notices are displayed) but the$post
variable seems to be null here. This could be the reason why toys are being thrown out of the push buggy.Forum: Plugins
In reply to: [Yoast SEO] PHP Notice after successful avatar upload on BuddyPressThanks again jrf – i’ve raised a BuddyPress Trac ticket:
Forum: Plugins
In reply to: [AuthorSure] Rel attribute to have both author and nofollowThe problem isn’t adding nofollow or stripping links. The problem is more to do with Google not recognising authorship when the two values are used together e.g
rel="author nofollow"
Forum: Fixing WordPress
In reply to: How to change the human-time-diff post-date language?you could copy the function to your theme’s functions.php file, rename it and then change the language. That’s what i did.
Forum: Fixing WordPress
In reply to: Question about get_the_time()Guys, yes, it does return the date created. I can confirm that after checking on a fresh site.
thanks for you help.
Forum: Fixing WordPress
In reply to: Annoying preloading issueflight1307 the header image of the panther loads instantly for me when I visit your site?
Forum: Plugins
In reply to: [Yoast SEO] PHP Notice after successful avatar upload on BuddyPressThanks jrf – hoping your validating can resolve the problem.
Forum: Plugins
In reply to: [AuthorSure] Rel attribute to have both author and nofollowHi Russell
The target of the link is neither a paid link, nor an untrusted link, nor a login/protected link, which are the usual reasons for using nofollow
My site authors are not moderated so may well enter untrusted or paid links. This is the reason I need the nofollow on these links.
I don’t actually believe it can be done. You may know better though. Hope you can help.
Forum: Fixing WordPress
In reply to: Translating WordPressHey Lorenzo!
Thanks for the links, i’ll check them out. Much appreciated.
Forum: Fixing WordPress
In reply to: Why does WP automatically add a or at the end of each comment?Yes I can and it isn’t a problem, it’s intentional. I just had an answer over at Stack Overflow if anyone is interested
Forum: Fixing WordPress
In reply to: Why does WP automatically add a or at the end of each comment?I’m not entirely sure it’s a problem. I think it is intentional on the part of WordPress.
I can show you an example. Take a look at the custom callback function
mytheme_comment
on this page:https://codex.www.ads-software.com/Function_Reference/wp_list_comments
You’ll see a tag is opened by line:
<<?php echo $tag ?> <?php comment_class(empty( $args['has_children'] ) ? '' : 'parent') ?> id="comment-<?php comment_ID() ?>">
. However the tag isn’t closed which indicates it is closed automatically by WordPress.You’ll be able to replicate on a fresh install, default theme, no plugins activated.
Now do you see what I mean? My question is why does WordPress do it this way?
Forum: Fixing WordPress
In reply to: Why does WP automatically add a or at the end of each comment?I’m 95% sure WordPress does! The callback is controlled by my theme yes, but there is no
</li>
in that yet one is being outputted!Forum: Fixing WordPress
In reply to: wp_list_pages() and throwing PHP warningsActually there were less warnings than I thought. 2 warnings were being thrown for each item in the list.
These are the two warnings I am getting.
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘my_css_attributes_filter’ not found or invalid function name in /wp-includes/plugin.php on line 173
Warning: implode(): Invalid arguments passed in /wp-includes/post-template.php on line 1057
Just tried on a different site which uses a different theme and no warnings appeared. Not really a big issue as I am now running a loop using
WP_Query()