Thank you. (For saying this, I find such attitude infuriating)
OK - we all have moments when we have low self-esteem or negative self-regard
or we are insecure,
but try not to let your thoughts be harmful to your mental health and well-being.
You are not stupid and donât talk about yourself like that !
Happiness does not come, it is created by your mental state (your thoughts and the choice of what you will think in every second of your life).
Donât be so hard on yourself
You have friends here who appreciate you and want to help you
Today I received a âgiftâ from ISP + âŹ50 on a card from one store
now I will have additional work until I configure everything on the tablet
Wow! Your ISP must be so kind to customers for those things!
They do âeverythingâ just to sign a contract for 2 years
Does anyone know why PHP does this?
Whenever I render HTML inside or right after a PHP if, the indentation gets messed up.
Attach that code right before the article tag, you are welcome!
Why do you not put that first two lines of php codes into a single <?php ?>
tag?
Good point. But that still doesnât change the outcome.
What I wonder is what is wrong with some people in here.
Whatâs wrong with who?
I donât know, but itâs better to not know about itâŚ
Mmm, I guess itâs better if I donât mention their names here. But not you guys! You guys are amazing. People come here to find solutions, so we are willingly helping them solve their issues, but what I see frustrating is that few people in here are comparing their knowledge with others. For example, I know very well about the cybersecurity field, but sometimes my answers may be doubtful to someone or not accurate. We all make mistakes. So if something like that happens, itâs better to discuss it rather than argue about it. In this community forum, Iâve seen every helping user have good knowledge about what they are talking about, but if they ever say or point out something that is wrong or doubtful, be a gentleman and handle it if you know about it well. And I rarely reply to WordPress website errors because I donât have a good experience with WordPress.
Where exactly?
Thank you so much!
I totally agree, especially with the last point. Itâs better to be nice than to fight fire with fire, especially with who knows less and with who tends to vary their character by too much when someone tries to help the other.
I also agree with that! I sometimes make some mistakes, but I promptly correct them when I finally get the prompted things the user missed. I can also find out errors in their side and correct them.
Itâs OK; I also tend to not have any errors while working on my blog, which also uses WordPress, and tend to solve them myself if I ever happen to have one.
(Gotta wait 2 hours to like again)
And well, what was meant to be my main topic on this topic (so the daily like limit) is now yours; donât worry, in some days and after you read some more youâll get the trust level that will allow you to like more a day!
Hi @YT_Xaos ,
That is because the part that comes before <?php
and those between ?>
and other HTML tags are effectively spaces in HTML, which is treated as plaintext. PHP output plaintext as is, thatâs why.
One way of solving this is to group all PHP code at the top of the file as a big PHP block (that is - if your code is contained in a single file and without any MVC frameworks), then output anything else as per needed below to reduce the chances of needing multiple indentations across 2 languages.
Usually, this cannot be completely avoided but you can get desirable results if you can compromise the IDE side of indentation.
Alternatively, you can also take a look at PHP tidy functions.
https://www.php.net/manual/en/book.tidy.php
Either way, this has no impact on user experience as the browser would just render the page the same way.
Cheers!
Thank you! You are amazing too.
Agreed.
Same here, I have zero knowledge of WordPress.
Yes, I know. My question was purely because I like to keep things nice and organized, so when that happens I just get annoyed. Thank you for your help, though!