Sziasztok,
Van egy plguinom, mely két tartalom közé ékelődik be. De én azt szeretném, hogy 2. tartalom után jelenjen meg. Szerintetek ez megvalósítható?
A két tartalom php kódja a téma fájljaiból kimásolva:
<br />
<?php } ?><br />
<?php if (strlen($post->post_content) > 0) { ?><br />
<div class="intro" itemprop="description"><br />
<?php the_content(); ?><br />
</div><br />
<br />
<?php } ?><br />
<?php if (count($recipe_instructions) > 0) { ?><br />
<div class="instructions" itemprop="recipeInstructions"><br />
<ol><br />
<?php<br />
$instructions_array = unserialize($recipe_instructions);<br />
for ( $i = 0; $i < count($instructions_array); $i++ ) { $instruction = $instructions_array[$i];<br />
echo '<li>';<br />
echo $instruction;<br />
echo '</li>';<br />
}?><br />
</ol><br />
</div><br />
```<br />
(Képet is mellékeltem mert nem szép, ahogy ide beillesztette)<br />
<br />
A baj, pedig az, hogy ez mögé illeszti be a plugin magát: <?php the_content(); ?>. A recipe_instructions lezárt div után helyett.<br />
<br />
A pluginban szerintem ez a sor felel a beillesztendő helyért.<br />
// Add WP filter for automatic shortcodes
add_filter( 'the_content', array( $this, 'filter_content') );
Ezt át lehet módosítani úgy, hogy a 2. tartalom mögé illesze be a plugin magát?