Closed. This question is off-topic. It is not currently accepting answers.admin管理员组文章数量:1130349
Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.
Closed 6 years ago.
Improve this questionit is a big problem. when a new user sign up in my website, as usual in wordpress, one email will be sent to him/her to be able to set him/her password.
the email will be sent but the link is incorrect. it is like so:
Username: username To set your password, visit the following address:
.php
as you see, the link is for login page, not for setting the password!!!
Closed. This question is off-topic. It is not currently accepting answers.Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.
Closed 6 years ago.
Improve this questionit is a big problem. when a new user sign up in my website, as usual in wordpress, one email will be sent to him/her to be able to set him/her password.
the email will be sent but the link is incorrect. it is like so:
Username: username To set your password, visit the following address:
http://end-eng/wp-login.php
as you see, the link is for login page, not for setting the password!!!
Share Improve this question edited Dec 22, 2018 at 11:09 sh.dehnavi asked Dec 13, 2018 at 21:32 sh.dehnavish.dehnavi 411 silver badge12 bronze badges 4- Now i display those table by HTML but maybe it will change in Future. – sh.dehnavi Commented Dec 13, 2018 at 21:39
- Well have you tried the code you posted? – Jacob Peattie Commented Dec 14, 2018 at 0:46
- @Jacob Peattie Hi. no my friend. i am not sure about that – sh.dehnavi Commented Dec 14, 2018 at 9:32
- @JacobPeattie my friend. i can not ask question. and i edited my question! would you help? – sh.dehnavi Commented Dec 22, 2018 at 11:27
1 Answer
Reset to default 1you need to pass the post id as parameter and check it will give the result you want in function.php
function tr_count($post_id){
ob_start();
the_content();
$content = ob_get_clean();
return substr_count($content, '<tr>');
}
in single.php
echo tr_count(get_the_ID());
Closed. This question is off-topic. It is not currently accepting answers.
Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.
Closed 6 years ago.
Improve this questionit is a big problem. when a new user sign up in my website, as usual in wordpress, one email will be sent to him/her to be able to set him/her password.
the email will be sent but the link is incorrect. it is like so:
Username: username To set your password, visit the following address:
.php
as you see, the link is for login page, not for setting the password!!!
Closed. This question is off-topic. It is not currently accepting answers.Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.
Closed 6 years ago.
Improve this questionit is a big problem. when a new user sign up in my website, as usual in wordpress, one email will be sent to him/her to be able to set him/her password.
the email will be sent but the link is incorrect. it is like so:
Username: username To set your password, visit the following address:
http://end-eng/wp-login.php
as you see, the link is for login page, not for setting the password!!!
Share Improve this question edited Dec 22, 2018 at 11:09 sh.dehnavi asked Dec 13, 2018 at 21:32 sh.dehnavish.dehnavi 411 silver badge12 bronze badges 4- Now i display those table by HTML but maybe it will change in Future. – sh.dehnavi Commented Dec 13, 2018 at 21:39
- Well have you tried the code you posted? – Jacob Peattie Commented Dec 14, 2018 at 0:46
- @Jacob Peattie Hi. no my friend. i am not sure about that – sh.dehnavi Commented Dec 14, 2018 at 9:32
- @JacobPeattie my friend. i can not ask question. and i edited my question! would you help? – sh.dehnavi Commented Dec 22, 2018 at 11:27
1 Answer
Reset to default 1you need to pass the post id as parameter and check it will give the result you want in function.php
function tr_count($post_id){
ob_start();
the_content();
$content = ob_get_clean();
return substr_count($content, '<tr>');
}
in single.php
echo tr_count(get_the_ID());
本文标签: not sending correct link to set the password in registration email
版权声明:本文标题:not sending correct link to set the password in registration email 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749076120a2312332.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论