我目前有一個用於wordpress主題的「靜態」滑塊,我想將其更改爲動態滑塊。這意味着我目前總是需要在代碼中爲幻燈片添加新幻燈片,內容等。但我想改變它,我可以在wordpress儀表板中以插件的形式輕鬆更改它。我的編程技巧還不夠好,爲此編寫一個自己的插件,特別是沒有像我這樣的時間壓力。將「靜態」滑塊更改爲動態,容易更改的滑塊
那麼有沒有一個插件可以將靜態滑塊更改爲動態滑塊?還是有一個滑塊插件,我可以編輯所有的HTML標記並粘貼到我的?
到目前爲止,我已經嘗試過WP Slider Plugin,它不會像我需要它一樣工作。任何幫助表示讚賞,
PS:我的滑塊由一個圖像,所有幻燈片所在的導航以及一個顯示當前幻燈片中文本的信息框組成。
PPS:基本上我需要一個表單/元字段,我可以添加這些東西(BackgroundImage,Slide,Slide-Title,Slide Infotext with HTML Markup)並將它添加到滑塊中。這是我目前的知識。
編輯:好的,我試過使用:http://www.armagost.com/blog/developing-a-content-slider-with-custom-post-types/ 但由於那一個有一個完全不同的結構,我試過這個。它沒有工作,我不知道爲什麼。我使用的是WordPress的幻燈片,並試圖查詢它們,然後通過ID查詢帖子,也嘗試查詢標題和縮略圖。不起作用。任何人的提示? Desperated。
<div id="intro">
<div id="featured" >
<ul class="ui-tabs-nav">
<li class="ui-tabs-nav-item" id="nav-fragment-1"><a href="#fragment-1"><?php echo get_the_title($1); ?> </a></li>
<li class="ui-tabs-nav-item ui-tabs-selected" id="nav-fragment-2"><a href="#fragment-2"><?php echo get_the_title($2); ?></a></li>
<li class="ui-tabs-nav-item" id="nav-fragment-4"><a href="#fragment-4"><?php echo get_the_title($3); ?></a></li>
<li class="ui-tabs-nav-item" id="nav-fragment-5"><a href="#fragment-5"><?php echo get_the_title($4); ?></a></li>
<li class="ui-tabs-nav-item" id="nav-fragment-6"><a href="#fragment-6"><?php echo get_the_title($5); ?></a></li>
</ul>
<div id="fragment-1" class="ui-tabs-panel">
<?php
$post_id = 1;
$queried_post = get_post($post_id,'post_type' => 'slide');
?>
<?php the_post_thumbnail(); ?>
<div class="info" >
<?php
echo $queried_post->post_content;
?></div>
</div>
<div id="fragment-2" class="ui-tabs-panel ui-tabs-hide">
<?php
$post_id = 2;
$queried_post = get_post($post_id,'post_type' => 'slide');
?>
<?php the_post_thumbnail(); ?>
<div class="info" >
<?php
echo $queried_post->post_content;
?></div>
</div>
<div id="fragment-4" class="ui-tabs-panel ui-tabs-hide">
<?php
$post_id = 3;
$queried_post = get_post($post_id,'post_type' => 'slide');
?>
<?php the_post_thumbnail(); ?>
<div class="info" >
<?php
echo $queried_post->post_content;
?></div>
</div>
<div id="fragment-5" class="ui-tabs-panel ui-tabs-hide">
<?php
$post_id = 4;
$queried_post = get_post($post_id,'post_type' => 'slide');
?>
<?php the_post_thumbnail(); ?>
<div class="info" >
<?php
echo $queried_post->post_content;
?></div>
</div>
<div id="fragment-6" class="ui-tabs-panel ui-tabs-hide">
<?php
$post_id = 5;
$queried_post = get_post($post_id);
?>
<?php the_post_thumbnail(); ?>
<div class="info" >
<?php
echo $queried_post->post_content;
?></div>
</div>
</div>
</div>
WP滑塊插件如何不按你想要的方式工作? – designtocode
@msbodetti它的構建方式與我的滑塊不同。我的滑塊由圖像,所有幻燈片所在的導航以及顯示當前幻燈片中文本的信息框左側組成。 – ShawnWhite
也許你應該把它放在你的問題上面,這樣人們纔會知道你在找什麼插件:) – designtocode