0

it 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.com/wp-login.php 

as you see, the link is for login page, not for setting the password!!!

closed as off-topic by Jacob Peattie, Dave Romsey, bueltge, rudtek, Dan Gayle Dec 17 '18 at 21:59

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

  • Now i display those table by HTML but maybe it will change in Future. – sh.dehnavi Dec 13 '18 at 21:39
  • Well have you tried the code you posted? – Jacob Peattie Dec 14 '18 at 0:46
  • @Jacob Peattie Hi. no my friend. i am not sure about that – sh.dehnavi Dec 14 '18 at 9:32
  • @JacobPeattie my friend. i can not ask question. and i edited my question! would you help? – sh.dehnavi Dec 22 '18 at 11:27
1

you 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 the answer you're looking for? Browse other questions tagged or ask your own question.