Php 返回页面后出现Vimeo错误
在进入一个项目并回到家后,我遇到了一个奇怪的问题 这是你的电话号码。打开该页面时效果良好,但如果单击第一个项目,然后返回,则该页面将加载相同的所有视频: 如果我检查控制台,这就是我得到的错误:Php 返回页面后出现Vimeo错误,php,html,wordpress,vimeo,Php,Html,Wordpress,Vimeo,在进入一个项目并回到家后,我遇到了一个奇怪的问题 这是你的电话号码。打开该页面时效果良好,但如果单击第一个项目,然后返回,则该页面将加载相同的所有视频: 如果我检查控制台,这就是我得到的错误: 加载资源失败:net::ERR\u CACHE\u MISShttp://player.vimeo.com/video/9956698?title=0&byline=0&portrait=0 这是一个循环: <article id="post-<?php the_ID(); ?>" &
加载资源失败:net::ERR\u CACHE\u MISShttp://player.vimeo.com/video/9956698?title=0&byline=0&portrait=0
这是一个循环:
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="post_image">
<?php $_video_type = get_post_meta(get_the_ID(), "video_format_choose", true);?>
<?php if($_video_type == "youtube") { ?>
<iframe src="http://www.youtube.com/embed/<?php echo get_post_meta(get_the_ID(), "video_format_link", true); ?>?wmode=transparent" wmode="Opaque" frameborder="0" allowfullscreen></iframe>
<?php } elseif ($_video_type == "vimeo"){ ?>
<iframe src="http://player.vimeo.com/video/<?php echo get_post_meta(get_the_ID(), "video_format_link", true); ?>?title=0&byline=0&portrait=0" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
<?php } elseif ($_video_type == "self"){ ?>
<div class="video">
<div class="mobile-video-image" style="background-image: url(<?php echo get_post_meta(get_the_ID(), "video_format_image", true); ?>);"></div>
<div class="video-wrap" >
<video class="video" poster="<?php echo get_post_meta(get_the_ID(), "video_format_image", true); ?>" preload="auto">
<?php if(get_post_meta(get_the_ID(), "video_format_webm", true) != "") { ?> <source type="video/webm" src="<?php echo get_post_meta(get_the_ID(), "video_format_webm", true); ?>"> <?php } ?>
<?php if(get_post_meta(get_the_ID(), "video_format_mp4", true) != "") { ?> <source type="video/mp4" src="<?php echo get_post_meta(get_the_ID(), "video_format_mp4", true); ?>"> <?php } ?>
<?php if(get_post_meta(get_the_ID(), "video_format_ogv", true) != "") { ?> <source type="video/ogg" src="<?php echo get_post_meta(get_the_ID(), "video_format_ogv", true); ?>"> <?php } ?>
<object width="320" height="240" type="application/x-shockwave-flash" data="<?php echo get_template_directory_uri(); ?>/js/flashmediaelement.swf">
<param name="movie" value="<?php echo get_template_directory_uri(); ?>/js/flashmediaelement.swf" />
<param name="flashvars" value="controls=true&file=<?php echo get_post_meta(get_the_ID(), "video_format_mp4", true); ?>" />
<img src="<?php echo get_post_meta(get_the_ID(), "video_format_image", true); ?>" width="1920" height="800" title="No video playback capabilities" alt="Video thumb" />
</object>
</video>
</div></div>
<?php } ?>
</div>
</article>
您使用的是chrome浏览器吗?或者你最近在wordpress上安装过插件吗?是的,我正在使用chrome。它有很多插件,特别是任何一个插件可能会出错?你看过我链接的帖子了吗?@rnevius我正在查看;)