zzuum
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Display wordpress post in other wayDude, you really helped me.. :)) :applause: clap, clap, clap
Forum: Themes and Templates
In reply to: Display wordpress post in other waySomething..
Forum: Themes and Templates
In reply to: User choose how many columns the needWell that is not important. I create my theme and I add many possibilities but i can’t find way to add that options.
Forum: Themes and Templates
In reply to: Add new class to page bodyHere si solution:
//Page Slug Body Class function add_slug_body_class( $classes ) { global $post; if ( isset( $post ) ) { $classes[] = $post->post_type . '-' . $post->post_name; } return $classes; } add_filter( 'body_class', 'add_slug_body_class' );
Forum: Themes and Templates
In reply to: How to show post horizontally [inline]Thank you for answer.
Well my theme is not online, still… i use classic wordpress loop. If that can help you.
This one :
<!-- Start the Loop. --> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <!-- Test if the current post is in category 3. --> <!-- If it is, the div box is given the CSS class "post-cat-three". --> <!-- Otherwise, the div box is given the CSS class "post". --> <?php if ( in_category('3') ): ?> <div class="post-cat-three"> <?php else: ?> <div class="post"> <?php endif; ?> <!-- Display the Title as a link to the Post's permalink. --> <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2> <!-- Display the date (November 16th, 2009 format) and a link to other posts by this posts author. --> <small><?php the_time('F jS, Y') ?> by <?php the_author_posts_link() ?></small> <!-- Display the Post's content in a div box. --> <div class="entry"> <?php the_content(); ?> </div> <!-- Display a comma separated list of the Post's Categories. --> <p class="postmetadata">Posted in <?php the_category(', '); ?></p> </div> <!-- closes the first div box --> <!-- Stop The Loop (but note the "else:" - see next line). --> <?php endwhile; else: ?> <!-- The very first "if" tested to see if there were any Posts to --> <!-- display. This "else" part tells what do if there weren't any. --> <p>Sorry, no posts matched your criteria.</p> <!-- REALLY stop The Loop. --> <?php endif; ?>
Forum: Themes and Templates
In reply to: jumps in wordpress<h3><a href="https://stefanvblog.com/817/">Saturday - Rebecca Black & Dave Days</a></h3> <iframe src="//www.youtube.com/embed/GVCzdpagXOQ" height="360" width="480" allowfullscreen="" frameborder="0"></iframe> <h3><a href="https://stefanvblog.com/817/#2">Kobe vs. Messi: The Selfie Shootout</a></h3> <iframe src="//www.youtube.com/embed/jhFqSlvbKAM" height="360" width="480" allowfullscreen="" frameborder="0"></iframe> <h3><a title="sss" href="https://stefanvblog.com/817/#3" target="_blank">EX-YU Rock Mix </a></h3> <iframe src="//www.youtube.com/embed/MCd_S6nWl5o" height="360" width="480" allowfullscreen="" frameborder="0"></iframe> <h3><a title="Top5" href="https://stefanvblog.com/817/#4">Branimir ?tuli? "Usne vrele vi?nje"</a></h3> <iframe src="//www.youtube.com/embed/Qudotq4Zi1I" height="360" width="480" allowfullscreen="" frameborder="0"></iframe> <h3><a href="https://stefanvblog.com/817/#5">Parni Valjak MIX (ex yu) </a></h3> <iframe src="//www.youtube.com/embed/HpEA9DUhCv0" height="360" width="480" allowfullscreen="" frameborder="0"></iframe>
i did that.. but it nothing .. :S ..
I don’t put that on first video..
Forum: Themes and Templates
In reply to: jumps in wordpresshere is link :
https://stefanvblog.com/category/top5/and when you click on some video, i want that you go exactly on the video in post.
Forum: Themes and Templates
In reply to: [Asteria Lite] How to add a logoGive us link and where you want to put your logo?
html ode for inserting image…
<img src=”image.jpg” alt=”image” height=”50″ width=”100″>Forum: Fixing WordPress
In reply to: Youtube video thubnailI found the way.. thank you…
$thumb = get_youtube_thumb( 'https://www.youtube.com/watch?v=OC2TTslf_YM' ); $Idvid = get_youtube_thumb( 'OC2TTslf_YM' ); echo '<img src="https://img.youtube.com/vi/'.$Idvid.'/default.jpg">';
function get_youtube_thumb( $video_id ) { // Did we get a URL? if ( FALSE !== filter_var( $video_id, FILTER_VALIDATE_URL ) ) { // https://www.youtube.com/v/abcxyz123 if ( FALSE !== strpos( $video_id, '/v/' ) ) { list( , $video_id ) = explode( '/v/', $video_id ); } // https://www.youtube.com/watch?v=abcxyz123 else { $video_query = parse_url( $video_id, PHP_URL_QUERY ); parse_str( $video_query, $video_params ); $video_id = $video_params['v']; } } return 'https://img.youtube.com/vi/' . $video_id . '/default.jpg'; }
No i want to search in post for youtube utl.. ??
Forum: Themes and Templates
In reply to: PhP Parse stgin from postwoow.. all html .. :S .. is there any easier way
Forum: Themes and Templates
In reply to: PhP Parse stgin from postNo, i don’t need title of post.. I need text in the post that has h3 tag
Here is image : https://i42.tinypic.com/so1n5e.png
Forum: Themes and Templates
In reply to: PhP Parse stgin from posti need to print them here : https://stefanvblog.com/category/top5/
but if you can’t that.. is ok in the same post too ??
Forum: Themes and Templates
In reply to: PhP Parse stgin from postI want use all sentences from post that have <h2> tag… and then print them..
example :
new post<h2>title1</h2>
text1
<h2>title2</h2>
text2
<h2>title3</h2>
text3and now i need that titles from post.
Here is picture : https://i42.tinypic.com/so1n5e.png
That <h2> i want.Forum: Themes and Templates
In reply to: PhP Parse stgin from postwell maybe.. do you have some example with JavaScript..?
Forum: Themes and Templates
In reply to: PhP Parse stgin from postThank you for answer..but i need something more precision.. ??