georgecj
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: HTML entity problemHello Moondrop,
now I saw my problem as well, did not think at first that should be the problem, but hey. I’ve used this snippet https://stackoverflow.com/a/10173268/2595273 and worked. So this solved my problem, thank to your idea.
I really appreciate your help and thanks a lot,
GeorgeForum: Fixing WordPress
In reply to: HTML entity problemHello Moondrop,
sorry I was away, I had no internet :D.
Anyway, here is the code from php:
<div class="descr"> <?php $content = get_the_content(); echo mb_strimwidth($content, 0, 140, '...');?> </div>
And here is the WYSIWYG code from post:
There was an interesting article in <a href="https://www.forbes.com/sites/profdrwolfganggarlt/2016/09/12/chinese-tourists-wont-let-old-age-slow-them-down/#7cf8b1805495">Forbes</a> in September about the ‘silver wave’ in China’s outbound tourism. In the last 50 years, the life expectancy in China has improved from 43 years to 76, not only the older generation live long and are fitter, they have also got more money to spend.
Together with the screenshot from first post, I think they are enough for you to understand what’s my problem.
Thank you a lot !
Forum: Fixing WordPress
In reply to: HTML entity problemI am not sure you guys understand my real problem. Echoing the content -> echo get_the_content(), this is what I am already doing.
The only problem is that the double quotes from href messes up the code, or I guess so.
Forum: Fixing WordPress
In reply to: HTML entity problemHello Moondrop,
and thank you for your reply. No, that’s not the problem. The problem is the href inside that div. Because double quotes, it messes up the code. If I delete the link from WP inside content post, everything works fine.
So I need a solution for double quotes or single, to let WP or PHP know to ignore them or something like that.
Hope you understand now.
Thank you!
Forum: Fixing WordPress
In reply to: Popular postsThat uses a widget, right? I need to implement it in my code, on index.php.
Forum: Fixing WordPress
In reply to: Popular postsAs far as I know, nope.
Forum: Fixing WordPress
In reply to: Images not working anymore after migrationExactly. Now, I had to reupload all images, because there weren’t that much, but I want to know what to do on future, in case I have another migration on this website or others.
Forum: Fixing WordPress
In reply to: Images not working anymore after migrationUploading any file it’s working fine, no matter if it’s English file name or Chinese. It was all about migration, during these, a lot of images were missing (Chinese names files).
Forum: Fixing WordPress
In reply to: Images not working anymore after migrationHi cedcommerce,
thank you for your answer. Ok, I can use that plugin, but I want to find out the logic behind this. Does it affect with something that the images have Chinese letters? No matter what plugin I use or way to migrate.
I just want to know how WP works behind.
Thank you.
Forum: Fixing WordPress
In reply to: After migration, image width 0Same thing, any image I use in there, it’s 0x0. I’ve tried with another image and with the same image as before, but reuploaded.
[Moderator Note: No bumping, thank you.]
Forum: Fixing WordPress
In reply to: After migration, image width 0First option. I even deleted it and reuploaded it. Basically, I use this theme https://forum.tagdiv.com/newsmag-newsmag-documentation/ and I use the link from Media Library inside that theme, as a banner.
Forum: Plugins
In reply to: [Tumblr Crosspostr] How to display featured image on TumblrNevermind, it was from me. Sorry about that.
Forum: Plugins
In reply to: [Tumblr Crosspostr] How to display featured image on TumblrNoticed something weird: sometimes it appears, sometimes it doesn’t. So the a tag is always there, but only sometimes appears the img inside it. Why is that?
Forum: Plugins
In reply to: [Tumblr Crosspostr] How to display featured image on TumblrEverything went perfect, but checking it today, something has changed. The image does not show anymore, only the a tags. Do you know why?
Forum: Plugins
In reply to: [Tumblr Crosspostr] Won't post image despite Featured Image selectedHello, I am using a php code to get the featured image too. As you said Meitar, an img is included in the post, but it won’t get crossposted to the Tumblr. Have any idea?