0
我想獲取自定義文章類型的附件插件,但由於附件已更新,我無法讓它顯示。自定義文章類型的Wordpress附件插件
define('ATTACHMENTS_LEGACY', true); // force the legacy version of Attachments
我定義LEGACY使用舊版本的附件(如我肯定知道它在版本1的工作),但它現在只顯示郵政和頁面類型,而不是我的自定義後的類型'屬性'。
這是我在單property.php碼
<?php
if(function_exists('attachments_get_attachments')){
$attachments = attachments_get_attachments();
$total_attachments = count($attachments);
if($total_attachments) :
for($i=0; $i<$total_attachments; $i++) : ?>
<img src="<?php echo $attachments[$i]['location']; ?>" title="<?php echo $attachments[$i]['title']; ?>" />
<?php endfor; ?>
<?php endif; ?>
<?php } ?>
我試着在這裏創建一個自定義實例太 - http://wordpress.org/extend/plugins/attachments/other_notes/,但我得到這一行語法錯誤:
$欄= >在T_DOUBLE_ARROW陣列(
語法錯誤。
任何幫助將不勝感激,正如我所說的,它的工作附件被更新了。
這是有問題的網站 - http://www.james-hayward.com/property/gloucester-road/(通常附件出現在任何屬性頁的右側)。