3
내 트위터 게시물에 대한트위터 카드에서 동적 이미지 경로를 전달하는 방법은 무엇입니까?
<?php $image='http://abc.in/def.jpg'; ?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="twitter:card" content="summary">
<meta name="og:image" content="<?php echo $image?>">
<meta name="og:description" content="<?php echo $description; ?>">
<meta name="og:title" content="<?php echo $title; ?>">
<meta name="twitter:url" content="http://keyss.in">
<meta name="twitter:app:id:iphone" content="">
<meta name="twitter:app:id:ipad" content="">
<meta name="twitter:app:id:googleplay" content="">
<meta name="twitter:app:url:iphone" content="">
<meta name="twitter:app:url:ipad" content="">
<meta name="twitter:app:url:googleplay" content="">
</head>
</html>
코드를 사용하고 있습니다.
내가 <meta name="og:image" content="http://abc.in/def.jpg">
이미지의 정적 콘텐츠를 전달
<meta name="og:image" content="<?php echo $image?>">
이미지는 내 벽에 게시되지 않는.
이미지 콘텐츠에 동적 변수를 전달하려면 어떻게해야합니까?
echo $ image 후에 세미콜론이 누락되었지만 그렇지 않은 경우 코드가 올바르게 보입니다. 출력은 무엇입니까? –
세미콜론도 시도했지만 작동하지 않습니다. – Happy
출력은 무엇입니까? –