youlichika
Forum Replies Created
-
Forum: Networking WordPress
In reply to: multiserver bandwidthhi @jhaba, I have already moved my css,js,background image to google driver. Can Memcache cached wordpress database queries?
Forum: Networking WordPress
In reply to: multiserver bandwidth@ipstenu, thanks for your reply. so when i open one wp page, how many queries would be sent?
query
wp_usermeta
wp_users
wp_posts
wp_postmeta
wp_options
…If I install other plugin, it should be more queries. So is there any cache plugin for user info? like cookies, if a customer open my site in the first time, he do all the queries from wp database, then the cache remember his status (has been loggined or just a visiter) then if he continue open other pages, it would read the cache instead queries from wp database.
Thanks.
Forum: Fixing WordPress
In reply to: query user display_name failed in a custom mysql query foreachHow to use it?
I have reference the Codex page, still not know.
In fact, In my hand, I haveuser_ID
, then useuser_ID
to make a query and get thedisplay_name
.
Thanks.Forum: Fixing WordPress
In reply to: why meta:title need “ at the end??devil, solve it.
in
wp-includes/formatting.php
, find the line// Remove metadata tags $content = preg_replace('/<title>(.+?)<\/title>/','',$content);
remove this line, then the title is back to my page html source code. Waste a few hours, for this fool behave.
Forum: Fixing WordPress
In reply to: why meta:title need “ at the end??@alchymyth, I can post a link to my site, but I can not add title, even some simple word
<title>example</title>
, if I add some thing like</title>
, themeta:title
will disappear in page html source code.BTW: in theme function.php, I remove something
define( 'BP_SILENCE_THEME_NOTICE', true ); remove_action('wp_head','rsd_link'); remove_action('wp_head','feed_links_extra',3); remove_action('wp_head','feed_links',2); remove_action('wp_head','wlwmanifest_link'); remove_action('wp_head','index_rel_link'); remove_action('wp_head','wp_generator'); remove_action('wp_head','adjacent_posts_rel_link_wp_head', 10, 0 ); remove_action('wp_head','wp_generator'); remove_action('wp_head','parent_post_rel_link'); remove_action('wp_head','start_post_rel_link'); remove_action('wp_head','adjacent_posts_rel_link');
Forum: Fixing WordPress
In reply to: why meta:title need “ at the end??@alchymyth, hey, I know this is an error, but when I use
</title>
the W3C standard, I can not out put the title in the page html source code.And only use the uncorrected tag
</title />
, it become effective. Where is the problem? Is it setting infilter.php
orfunction,php
I can not find the problem.Forum: Installing WordPress
In reply to: move server, all pages template become default@claytonjames, thanks, I know I lost what from phpmyadmin now.
Forum: Fixing WordPress
In reply to: how to use `bloginfo('url')` into string?Thx for a quickly help ??
Forum: Plugins
In reply to: Can wp record users login ip and login time?Thanks, friend.
Forum: Fixing WordPress
In reply to: How to show user_name?This still can not show li tag…
<ul> <?php if ( is_user_logged_in() ) { global $current_user; get_currentuserinfo(); echo 'welcome '.$current_user->user_login'; wp_register(); } '<li>'.wp_loginout().'</li>'; ?> </ul>
Forum: Fixing WordPress
In reply to: How to show user_name?I modified the code like this ,but the li tag still lost…
-
<?php
- ‘.wp_loginout().’
if ( is_user_logged_in() ) {
global $current_user;
get_currentuserinfo();
echo ‘welcome ‘.$current_user->user_login;
wp_register();
}
‘‘; ?>
Forum: Fixing WordPress
In reply to: How to show user_name?<ul> <li><?php wp_register(); ?></li> <li><?php wp_loginout(); ?></li> </ul>
Forum: Fixing WordPress
In reply to: How to show user_name?@johnc28 thanks, I this can echo the user name.
By the way, how to add a li tag? Thanks.<ul> <?php wp_register(); ?> <?php wp_loginout(); ?> </ul>
Forum: Fixing WordPress
In reply to: problem of connection symbols.Thanks, the problem is how to use two ampersands. I search more in wordpress forum, there are many people asked, but I did not find a good way. who know that?
Forum: Fixing WordPress
In reply to: How to write a RewriteRule for wordpress custom pagination?up for help