![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Industry Role:
Join Date: Jan 2011
Location: Somewhere in Germany
Posts: 817
|
Wordpress: One line of php. Can anyone help?
Hey guys.
I recently bought a Wordpress theme from a couple of guys who do not have such a good reputation here in the forum. The support, unfortunately, does not answer, so I'm here to ask if anyone can help with a line php. Google says the video-tag for "thumbnailUrl" is missing. This sucks, because the theme is meant for videos. This is the code on the theme: Code:
<meta itemprop="thumbnailUrl" content="<?php echo $thumb; ?>" /> Code:
<meta itemprop="thumbnailUrl" content="" /> I tried several codes, to get at least something. Example: Code:
<meta itemprop="thumbnailUrl" content="<?php echo $get_the_post_thumbnail_url; ?>" /> <meta itemprop="thumbnailUrl" content="<?php echo the_post_thumbnail_url; ?>" /> Code:
<meta itemprop="thumbnailUrl" content="<?php echo $title; ?>" /> Solution?
__________________
I know, my english is bad. But your german might be even worse ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Industry Role:
Join Date: Aug 2005
Location: YUROP
Posts: 8,597
|
I'm going offline now but get_the_post_thumbnail_url and the_post_thumbnail_url are functions so you call them like this
Code:
<?php get_the_post_thumbnail_url(); ?> <?php the_post_thumbnail_url(); ?> https://developer.wordpress.org/refe...thumbnail_url/ https://developer.wordpress.org/refe...thumbnail_url/
__________________
![]() Anal Webcams | Kinky Trans Cams Live | Hotwife XXX Tube | Get your Proxies here |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 | |
Confirmed User
Industry Role:
Join Date: Jan 2011
Location: Somewhere in Germany
Posts: 817
|
Quote:
__________________
I know, my english is bad. But your german might be even worse ![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Industry Role:
Join Date: Aug 2009
Posts: 819
|
I had a similar problem recently. Does the theme use custom fields for images rather than native wordpress featured images perhaps?
*edit* If you are talking about a WP-Script theme, copy the featured image url to "Main thumbnail" block and update post.
__________________
. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
👏 REVOLUTIONARY 👏
Industry Role:
Join Date: Jan 2016
Posts: 1,440
|
__________________
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Making PHP work
Industry Role:
Join Date: Nov 2002
Location: 🌎🌅🌈🌇
Posts: 20,230
|
<meta itemprop="thumbnailUrl" content="<?php echo get_the_post_thumbnail_url(); ?>" />
<meta itemprop="thumbnailUrl" content="<?php the_post_thumbnail_url(); ?>" /> ![]()
__________________
Make Money with Porn |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 | |
Confirmed User
Industry Role:
Join Date: Jan 2011
Location: Somewhere in Germany
Posts: 817
|
Quote:
![]()
__________________
I know, my english is bad. But your german might be even worse ![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
VIP
Industry Role:
Join Date: Jul 2013
Posts: 22,112
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |