heller247
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Disable Single Links on selected postsok nevermind i just got rid of that line
var_dump( get_field('no_link_to_single') );
you saved my day! thank you again
Forum: Fixing WordPress
In reply to: Disable Single Links on selected postsWow its working!
Thank you so much!
Only small problem is that here is now a litte Text above the Link with
bool(false) or if activated with bool(true)
Can i somehow hide it?
Forum: Fixing WordPress
In reply to: Disable Single Links on selected postsIts a custom theme.
With single link i mean the links to reach the single view.
you can check it here: https://www.pesch-partner.de/?page_id=275
They are added via css and that snippet:
<div id="linky"> <?php $linksPosts = new WP_Query(); $linksPosts->query('showposts=7&cat=335'); ?> <?php while ($linksPosts->have_posts()) : $linksPosts->the_post(); ?> <div class="boxy"> <div class="read"> <br> <?php the_post_thumbnail( $size, $attr ); ?> <br><br> <a href="<?php the_permalink(); ?>"><h4><?php the_title(); ?></h4></a> <span class="newstext"> <?php the_content('Read the rest of this entry »'); ?></span> </div> </div> <?php endwhile; ?> </div>
Some of those posts should not have a link in the Title. And iam looking for a solution to add an option in the posts to disable a link in the title.
Forum: Themes and Templates
In reply to: Blog with two blogstreams inside possible?ok managed it with this query
<?php $my_query = new WP_Query('category_name=featured&showposts=1'); while ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate = $post->ID; ?>
dont know why but now the comments are shown
thanks esmi
Forum: Themes and Templates
In reply to: Blog with two blogstreams inside possible?ok i did it now with the category thing.with this tutorial works almost fine expect of:
now i have two loops. before the first loop iam asking just to show a certain categorie and on the second loop i also ask just to show another categorie. it works but when i enter the second query my comments vanishes…
doesnt make any sense to me. any clues?
first query and loop on index site:
<?php query_posts('cat=3&showposts=10'); ?> //CATEGORY QUERY <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> <!-- thumbnail wrapper --> <div class="thumb main"> <!-- 235150image-covers --> <?php $image = get_post_meta($post->ID, 'thumbnail', true); ?> <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><img src="<?php echo $image; ?>" alt="" /></a> <!-- 235150image end --> <!-- thumbanil title --> <div class="thumb-title"> <h2><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title() ?> <?php comments_number('{0}', '{1}', '{%}' );?></a></h2> </div> <!-- thumbanil title end --> </div> </div> <?php endwhile; ?> <?php else : ?> <div class="post single"> <h2>No matching results</h2> <div class="entry"> <p>You seem to have found a mis-linked page or search query with no associated or related results.</p> </div> </div> <?php endif; ?>
second query and loop on right collumm site:
<?php query_posts('cat=3&showposts=10'); ?>//CATEGORY QUERY <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> <div class="Newsmain"> <div class="NewsTitle"><h5><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title() ?></div><div class="postMeta"><span class="comments"><a href="#comments"><?php comments_number('No comments', '1 comment', '% comments' );?></a></span><span class="date"> // <?php the_time('M jS, Y') ?> // <?php the_category(', ') ?></span></div></div></div> <?php endwhile; ?> <?php else : ?> <div class="post single"> <h2>No matching results</h2> <div class="entry"> <p>You seem to have found a mis-linked page or search query with no associated or related results.</p> </div> </div> <?php endif; ?>
Forum: Themes and Templates
In reply to: Blog with two blogstreams inside possible?thanks for the reply!
so lets say i just do my news and stuff with the postthing. and is there a way to edit also in the backend a portfolio? seperatly via a plugin or so?
see for example at bigspaceship.com
they got a news stream and a portfolio? you might know how they did it?