TataVostru
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How can i display the categories i want in checkbox ( ajax results)how can i delete this post?
Forum: Fixing WordPress
In reply to: Taxonomy second page not display error 404Forum: Fixing WordPress
In reply to: Need Help – Problem display-ing the taxonomysolved adding this to your taxonomy solve the problem.
global $wp_query; $args = array_merge( $wp_query->query, array( 'post_type' => 'portfolio' ) ); query_posts( $args );
See Ya ??
Forum: Fixing WordPress
In reply to: How can i skip first post…?sloved
'offset'=> 5,
Forum: Fixing WordPress
In reply to: Display a text if there is no contentfor example
If i dont have anny content it shoud apear
” No content for this movie ”
Forum: Fixing WordPress
In reply to: How can i display random post by a post_typebeautiful it works,
now how can i get post .. let sayI have a movie page and i want to get all the news that have the tag the post Title.. can I?
The news are stored in post_type = stiri
The movies are in Wordpres native posts..In movie page:
https://cinema.trancelevel.com/amazing-spider-man-2012/I want to retrive all the post that are with the title…
In news i add the tag – the title of the movie.. and after – the news shoud apear on movie page…
If you understand wath i’m say
Thanks for helping me. I learn mutch ??
Forum: Fixing WordPress
In reply to: How can i display random post by a post_typeok thanks, it work’s
can you tel mee how to get all trailers by tags..
For example in page i have
https://cinema.trancelevel.com/trailers/amazing-spider-man-2012/
Tags : Amazing
I have 5 movies with tag Amazing
I want to display only the movies with tag Amazing.How can i do that?
Forum: Fixing WordPress
In reply to: Display the text – No contentThank’s that work.
Forum: Fixing WordPress
In reply to: GD Star Rathing problem – images from custom field.im getting somting like this…
<div class="box_actori_vot"> <div class="box_actori_img"><span class="nr_actor">1</span> <img src="459">459</div> <div class="box_actori_title"><a href="https://cinema.trancelevel.com/persoane/liam-neeson/">Liam Neeson</a></div> <div class="box_actori_zodie"><b>Nota:</b>:9.1 </div> <div class="box_actori_data"><b>Voturi</b>:7</div> <div class="box_actori_votare"><div style="text-align:left; padding: 0; margin: 0; background: url(https://cinema.trancelevel.com/wp-content/plugins/gd-star-rating/stars/oxygen/stars16.png); height: 16px; width: 160px;"><div style="background: url(https://cinema.trancelevel.com/wp-content/plugins/gd-star-rating/stars/oxygen/stars16.png) bottom left; padding: 0; margin: 0; height: 16px; width: 145.6px;"></div></div></div> </div>
[ Please do not bump, that’s not permitted here. ]
Forum: Fixing WordPress
In reply to: GD Star Rathing problem – images from custom field.This is the function, i think there is a missing text
foreach ($all_rows as $row) { if ($widget["image_from"] == "content") { $row->image = gdFunctionsGDSR::get_image_from_text($row->post_content); } else if ($widget["image_from"] == "custom") { $row->image = get_post_meta($row->post_id, $widget["image_custom"], true); } else $row->image = ""; $row->image = apply_filters('gdsr_widget_image_url_prepare', $row->image, $widget, $row); if ($row->image != "" && intval($widget["image_resize_x"]) > 0 && intval($widget["image_resize_y"]) > 0) { $row->image = GDSRRenderT2::prepare_image($row->image, $widget["image_resize_x"], $widget["image_resize_y"]); }
Forum: Fixing WordPress
In reply to: How can i get the titleThis code get me the movies… but it give mee all the movies stored in post
<?php //create new loop query for films by this actor $movies = $wpdb->get_col("SELECT post_id FROM $wpdb->postmeta WHERE meta_key = 'img' AND meta_value LIKE '%".get_the_ID()."%'"); $the_query = new WP_Query( array( 'post__in' => $movies) ); // The Loop while ( $the_query->have_posts() ) : $the_query->the_post(); echo '<div class="actor-box-related"><a class="actor-titlu" href="'; the_permalink(); echo '" title="'.get_the_title().'">'; ?> <img class="actor-img" src="/scripts/timthumb.php?src=<?php the_field('img'); ?>&h=90&w=60&zc=1" alt="<?php the_title(); ?>" title="<?php the_title(); ?>"/> <?php the_title(); echo '</a></div>'; endwhile; // Reset Post Data wp_reset_postdata(); ?>
( this code is for link-ing the actors that play in that movie.).
I want to retrive the movies.. (please see the link below)
https://www.cinema.trancelevel.com/box.jpg
and display each under.Do you understant wath i want?
Forum: Fixing WordPress
In reply to: How can i get the titleno this is not, i want to retrive the title from post’s
This i want(please look at the pictures):
Hy im not familiar so good with php code,i’m building a cinema site, im stuck in Box-office
EX: https://cinema.trancelevel.com/box-office/1-iulie-7-iulie-2012/
The Movies are stored in Posts :
https://www.cinema.trancelevel.com/movies.jpgThe Box-office are post_type:
https://www.cinema.trancelevel.com/box.jpgHow can i link to display the post into post type…?
Now in Box-Office i have post_type with the field locul_1, locul_2… and so on
In each other i add a movie that i want to be display in Box Office Theme
<?php /* Template Name Posts: Pagina Box-Office RO */ ?> <?php include (TEMPLATEPATH . '/header/index-trailer.php'); ?> <div class="art-contentLayout"> <div class="breadcrumbs"> <?php if(function_exists('bcn_display')) { bcn_display(); }?> </div> <div class="art-content"> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="box-film"> <h2 class="titlu-film"> <a>" rel="bookmark" title="<?php printf(__('%s'), the_title_attribute('echo=0')); ?>"><?php the_title(); ?></a> </h2> <div class="art-Post"> <div class="art-Post-tl"></div> <div class="art-Post-tr"></div> <div class="art-Post-bl"></div> <div class="art-Post-br"></div> <div class="art-Post-tc"></div> <div class="art-Post-bc"></div> <div class="art-Post-cl"></div> <div class="art-Post-cr"></div> <div class="art-Post-cc"></div> <div class="art-Post-body"> <table class="tabel-box" border="0" cellpadding="1"> <tr> <td class="tabel-img" rowspan="3"><img src="/scripts/timthumb.php?src=<?php the_field('img'); ?>&h=120&w=90&zc=1" alt="<?php the_title(); ?>" title="<?php the_title(); ?>"/> </td> <td class="tabel-numar">1</td> <td class="tabel-titlu" colspan="5"></td> </tr> <tr> <td class="tabel-numar-s"rowspan="2"></td> <td class="tabel-gen">Gen film</td> <td class="tabel-st">Saptamana trecuta</td> <td class="tabel-iw">Incasari Weekend</td> <td class="tabel-t">Vezi trailer</td> </tr> <tr> <td class="tabel-link">Action, adventure</td> <td class="tabel-link"><?php $key="incasari_weekend"; echo get_post_meta($post->ID, $key, true); ?></td> <td class="tabel-link"><?php $key="incasari_totale"; echo get_post_meta($post->ID, $key, true); ?></td> <td class="tabel-link">?</td> </tr> </table> </div> </div> </div> <?php endwhile; ?> <?php else: ?> <h2 class="center"><?php _e('Sorry, no posts matched your criteria.', 'kubrick'); ?></h2> <?php endif; ?> </div> <?php include (TEMPLATEPATH . '/sidebar1.php'); ?> </div> <div class="cleared"></div> <?php get_footer(); ?>
Forum: Fixing WordPress
In reply to: Post type problemthis is geting me the id for the movie , now how can i get the link
<?php $locul_1_value = get_post_meta($post->ID, 'locul_1', true); // check if the custum field has a value if($locul_1_value != '') { echo $locul_1_value; } ?>
Forum: Fixing WordPress
In reply to: Post type problemmeta_key = ‘distributie’ – is for display-ng the movies from post( that are stored) in actors page.
Ex: the movie that actor play in.
—————-
Now in Box-Office i have post_type with the field locul_1, locul_2… and so on
In each other i add a movie that i want to be display in Box Office Theme
Theme :
<?php /* Template Name Posts: Pagina Box-Office RO */ ?> <?php include (TEMPLATEPATH . '/header/index-trailer.php'); ?> <div class="art-contentLayout"> <div class="breadcrumbs"> <?php if(function_exists('bcn_display')) { bcn_display(); }?> </div> <div class="art-content"> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="box-film"> <h2 class="titlu-film"> <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('%s'), the_title_attribute('echo=0')); ?>"><?php the_title(); ?></a> </h2> <div class="art-Post"> <div class="art-Post-tl"></div> <div class="art-Post-tr"></div> <div class="art-Post-bl"></div> <div class="art-Post-br"></div> <div class="art-Post-tc"></div> <div class="art-Post-bc"></div> <div class="art-Post-cl"></div> <div class="art-Post-cr"></div> <div class="art-Post-cc"></div> <div class="art-Post-body"> <table class="tabel-box" border="0" cellpadding="1"> <tr> <td class="tabel-img" rowspan="3"><img src="/scripts/timthumb.php?src=<?php the_field('img'); ?>&h=120&w=90&zc=1" alt="<?php the_title(); ?>" title="<?php the_title(); ?>"/> </td> <td class="tabel-numar">1</td> <td class="tabel-titlu" colspan="5"></td> </tr> <tr> <td class="tabel-numar-s"rowspan="2"></td> <td class="tabel-gen">Gen film</td> <td class="tabel-st">Saptamana trecuta</td> <td class="tabel-iw">Incasari Weekend</td> <td class="tabel-t">Vezi trailer</td> </tr> <tr> <td class="tabel-link">Action, adventure</td> <td class="tabel-link"><?php $key="incasari_weekend"; echo get_post_meta($post->ID, $key, true); ?></td> <td class="tabel-link"><?php $key="incasari_totale"; echo get_post_meta($post->ID, $key, true); ?></td> <td class="tabel-link"> </td> </tr> </table> </div> </div> </div> <?php endwhile; ?> <?php else: ?> <h2 class="center"><?php _e('Sorry, no posts matched your criteria.', 'kubrick'); ?></h2> <?php endif; ?> </div> <?php include (TEMPLATEPATH . '/sidebar1.php'); ?> </div> <div class="cleared"></div> <?php get_footer(); ?>
Forum: Fixing WordPress
In reply to: Post type problemHy im not familiar so good with php code,i’m building a cinema site, im stuck in Box-office
EX: https://cinema.trancelevel.com/box-office/1-iulie-7-iulie-2012/
The Movies are stored in Posts :
https://www.cinema.trancelevel.com/movies.jpgThe Box-office are post_type:
https://www.cinema.trancelevel.com/box.jpgHow can i link to display the post into post type…?
<?php //create new loop query for films by this actor $movies = $wpdb->get_col("SELECT post_id FROM $wpdb->postmeta WHERE meta_key = 'distributie' AND meta_value LIKE '%".get_the_ID()."%'"); $the_query = new WP_Query( array( 'post__in' => $movies) ); // The Loop while ( $the_query->have_posts() ) : $the_query->the_post(); echo '<div class="actor-box-related"><a class="actor-titlu" href="'; the_permalink(); echo '" title="'.get_the_title().'">'; ?> <img class="actor-img" src="/scripts/timthumb.php?src=<?php the_field('img'); ?>&h=90&w=60&zc=1" alt="<?php the_title(); ?>" title="<?php the_title(); ?>"/> <?php the_title(); echo '</a></div>'; endwhile; // Reset Post Data wp_reset_postdata(); ?>