dasdo77
Forum Replies Created
-
Forum: Plugins
In reply to: [Dynamic Featured Image] 2nd featured Image in portfolio loopSorry, I don’t want to waste your time. If it’s to complicated for me, I have to think about another solution to get a portfolio site in my theme.
Forum: Plugins
In reply to: [Dynamic Featured Image] 2nd featured Image in portfolio loopOk, I tried the following: deleted all the code in the conent div and only putted your code there. Then on the portfolio site I get only the message “Parse error: syntax error, unexpected end of file in /kunden/139300_44803/webseiten/micklemuckleweb/wordpress/wp-content/themes/MinimalDessign/tpl-portfolio.php on line 50”. No pictures or anything.
Does this help? Is this what you want to know?
<?php get_header(); ?>
<div id=”content”>
<?php
global $post;
$x = 0;
$myposts = get_posts(‘numberposts=20&category_name=Portfolio’);
foreach($myposts as $post) :
setup_postdata($post);global $dynamic_featured_image;
foreach($myposts as $post) :
setup_postdata($post);
$second_featured_image = $dynamic_featured_image->get_nth_featured_image(2, $post->ID);
var_dump($second_featured_image);
?><img src=”<?php echo $second_featured_image[‘full’] ?>” width=”327″ height=”284″ />
?>
</div><!–//content–>Forum: Plugins
In reply to: [Dynamic Featured Image] 2nd featured Image in portfolio loopI’m sorry, I’m not a wordpress programmer at all ??
What do I have to to with it? I put it like this and then some “NULL NULL NULL…” is been shown on the portfolio site. https://micklemuckleweb.de/portfolio/
<?php
global $post;
$x = 0;
$myposts = get_posts(‘numberposts=20&category_name=Portfolio’);
foreach($myposts as $post) :
setup_postdata($post);
?><?php
var_dump($second_featured_image)
?>Forum: Plugins
In reply to: [Dynamic Featured Image] 2nd featured Image in portfolio loopHi Ankit,
many thanks for your fast reply.I don’t know where to put it. I tried 3 different things as you see below. Perhaps I’m doing something wrong…?
1. directly unter the global post thing
<?php
global $post;
$x = 0;
$myposts = get_posts(‘numberposts=20&category_name=Portfolio’);
foreach($myposts as $post) :
setup_postdata($post);global $dynamic_featured_image;
foreach($myposts as $post) :
setup_postdata($post);
$second_featured_image = $dynamic_featured_image->get_nth_featured_image(2, $post->ID);
?><img src="<?php echo $second_featured_image['full'] ?>" width="327" height="284" />
?>2. then I tried it like this after the div class portfolio line:
<?php
global $post;
$x = 0;
$myposts = get_posts(‘numberposts=20&category_name=Portfolio’);
foreach($myposts as $post) :
setup_postdata($post);
?><div class=”portfolio_post <?php if($x == 0) { echo “left”; } else { echo “right”; } ?>”>
<?php
global $dynamic_featured_image;
foreach($myposts as $post) :
setup_postdata($post);
$second_featured_image = $dynamic_featured_image->get_nth_featured_image(2, $post->ID);
?><img src="<?php echo $second_featured_image['full'] ?>" width="327" height="284" />
?>3. instead of the img source line:
<?php
global $dynamic_featured_image;
foreach($myposts as $post) :
setup_postdata($post);
$second_featured_image = $dynamic_featured_image->get_nth_featured_image(2, $post->ID);
?><img src="<?php echo $second_featured_image['full'] ?>" width="327" height="284" />
?>Forum: Plugins
In reply to: [Dynamic Featured Image] 2nd featured Image in portfolio loopSorry, I forgot the link: https://micklemuckleweb.de/portfolio/