Steekvlam
Forum Replies Created
-
Forum: Plugins
In reply to: [OptionTree] LanguagesThanks,
Its working fine!Forum: Hacks
In reply to: Custom meta saving not working!Currently im using it like this
if (isset($_POST["subtitle"]) { if (empty($_POST["subtitle"])) { delete_post_data($post->ID, "subtitle", $_POST["subtitle"]); } else { update_post_meta($post->ID, "subtitle", $_POST["subtitle"]); } }But it gives me an error : Parse error: syntax error, unexpected ‘{‘ on the line.
How can I fix this?
Forum: Hacks
In reply to: Display post link for 1 hourHi chilinut,
The filter wont change the other queries?
Cause there are 4 other pages with normal queries.Greetings
Forum: Hacks
In reply to: Display post link for 1 hourCan someone tell me how to use it in the theme?
Forum: Hacks
In reply to: Display post link for 1 hourLooks good!
But what will the query be for in the widget?
The query must be different then the other posts, only the widget must show the live post.Thanks!
Forum: Fixing WordPress
In reply to: Query Post by dayI think it works!
Thanks!
What I used is :
<? $sunday = date('j', strtotime('next sunday')); $monday = date('j', strtotime('next monday')); $tuesday = date('j', strtotime('next tuesday')); $wednesday = date('j', strtotime('next wednesday')); $thursday = date('j', strtotime('next thursday')); ?><?php $my_query = new WP_Query( array( 'post_type' => array('post','shows','movies'), 'paged' => $paged, 'day'=>$sunday, 'post_status' => 'future', 'posts_per_page'=>8 )); if ($my_query->have_posts()) { while ($my_query->have_posts()) : $my_query->the_post(); ?>Forum: Fixing WordPress
In reply to: Pagination with categoriesIm using this one
<? $posts_per_page = 6; $page = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1; $offset = ( $page - 1 ); $args = array( 'order_by' => 'name', 'taxonomy' => 'cat_shows' ); $categories = get_categories( $args ); for( $i = $offset * $posts_per_page; $i < ( $offset + 1 ) * $posts_per_page; $i++ ) { $category = $categories[$i]; $category_link = get_category_link( $category->term_id ); ?>But it isnt giving me the good pagination.
Please help?Forum: Fixing WordPress
In reply to: Pagination with categoriesIs this doable with
<?php wp_list_categories( $args ); ?>This is the html :
<ul> <li> <aside class="image"> <a href="#"><img src="category-image.jpg" alt="" class="imageauto"></a> </aside> <h2><a href="#">Category Title</a></h2> <p>Category description</p> </li> <ul>Forum: Fixing WordPress
In reply to: Comments on page using templateFixed it
Example:
<?php $withcomments = "1"; comments_template(); ?>Forum: Fixing WordPress
In reply to: WP Menu on External webpageCan I bumb this one up?
Forum: Fixing WordPress
In reply to: WP Menu on External webpageNo not really, thanks tho.
It will come on the same domain but different folder.
And the Menu with (ex. Home | About us | Blog) must be on the other folder too, but if I change it must change with it.Ex :
mydomain.my/wp/index.php (WP home with the menu)
mydomain.my/oc/index.php (Must include the same menu as the WP)I hope its more clear now.
Thank you,
Stefan