Wsparcie » Motywy » Zmiana ustawień slidera

  • Rozwiązano kris11

    (@kris11)


    Witam,
    Mam zainstalowany motyw ComFy Magazine – link do strony testowej. Według standardowych ustawień posty są wyświetlane z wybranej kategorii a chciałbym zmodyfikowac ustawienia slidera tak aby wyświetlane były posty z „recent topics” (np. 5 ostatnich). Jak to można zmienić?

    Pozdrawiam

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator amistad18

    (@amistad18)

    Pokaż kod slidera.

    Thread Starter kris11

    (@kris11)

    nie bardzo wiem gdzie to jest. może tak – login i haslo test

    Moderator amistad18

    (@amistad18)

    Pokaż kod pliku index.php.

    Thread Starter kris11

    (@kris11)

    W katalogu głównym motywu zawartośc index.php wygłada tak

    <?php // So clean… ?>

    Moderator amistad18

    (@amistad18)

    Plik index.php szablonu, a nie WordPressa, chcesz w końcu przerobić szablon, prawda?

    Thread Starter kris11

    (@kris11)

    Znalazlem dwa pliki. Można tu trzeba coś zmodyfikować
    1. features.php

    <div id="1" class="cptab">
    	<h2>Featured Entries</h2>
    	<p>Setup the featured area. The featured area uses a category that rotates between posts dynamically.</p>
    	<fieldset><legend>Featured Area Setup</legend>
    	<label for="cp_featured_n">Number of posts to rotate in featured area</label>
    	<input class="widefat tiny" name="cp_featured_n" id="cp_featured_n" value="<?php echo $this->options["featured_n"]; ?>">
    	<div class="clear"></div>
    	<label for="cp_featured">Select featured category from the list</label>
    	<select name="cp_featured" class="widefat big">
    	<?php
    	$cats = get_categories('hide_empty=0');
    	foreach($cats as $cat) {
    	?>
    	<option value="<?php echo $cat->cat_ID; ?>"<?php selected($cat->cat_ID, $this->options["featured"]); ?>><?php echo $cat->cat_name; ?></option>
    	<?php } ?>
    	</select>
    	<div class="clear"></div>
    	</fieldset>
    	</div>

    2. ajaxtabs.php

    <div id="4" class="cptab">
    	<h2>Ajax Tabs</h2>
    	<p>Setup the ajax tabs options. The ajax tabs appear on your sidebar and holds information about recent stories, most viewed, or most discussed stories.</p>
    	<fieldset><legend>Ajax Tabs Options</legend>
    	<label for="cp_recent_num">Number of recent stories to display</label>
    	<input class="widefat tiny" name="cp_recent_num" id="cp_recent_num" value="<?php echo $this->options["recent_num"]; ?>">
    	<div class="clear"></div>
    	<label for="cp_viewed_num">Number of most viewed stories to display</label>
    	<input class="widefat tiny" name="cp_viewed_num" id="cp_viewed_num" value="<?php echo $this->options["viewed_num"]; ?>">
    	<div class="clear"></div>
    	<label for="cp_discussed_num">Number of most discussed stories to display</label>
    	<input class="widefat tiny" name="cp_discussed_num" id="cp_discussed_num" value="<?php echo $this->options["discussed_num"]; ?>">
    	<div class="clear"></div>
    	</fieldset>
    	</div>

    Thread Starter kris11

    (@kris11)

    Zmodyfikowałem features.php jak poniżej i dziala

    <input class="widefat tiny" name="cp_recent_num" id="cp_recent_num" value="<?php echo $this->options["recent_num"]; ?>">
    	<div class="clear"></div>
    	<label for="cp_featured">Select featured category from the list</label>
    	<select name="cp_recent_num" class="widefat big">

    Dzieki za naprowadzenie.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Temat ‘Zmiana ustawień slidera’ jest zamknięty na nowe odpowiedzi.