Forum Replies Created

Viewing 11 replies - 1 through 11 (of 11 total)
  • Forum: Plugins
    In reply to: [OptionTree] Languages
    Thread Starter Steekvlam

    (@steekvlam)

    Thanks,
    Its working fine!

    Thread Starter Steekvlam

    (@steekvlam)

    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 hour
    Thread Starter Steekvlam

    (@steekvlam)

    Hi 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 hour
    Thread Starter Steekvlam

    (@steekvlam)

    Can someone tell me how to use it in the theme?

    Forum: Hacks
    In reply to: Display post link for 1 hour
    Thread Starter Steekvlam

    (@steekvlam)

    Looks 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 day
    Thread Starter Steekvlam

    (@steekvlam)

    I 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();
    ?>

    Thread Starter Steekvlam

    (@steekvlam)

    Im 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?

    Thread Starter Steekvlam

    (@steekvlam)

    Is 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>

    Thread Starter Steekvlam

    (@steekvlam)

    Fixed it

    Example:

    <?php
    $withcomments = "1";
    comments_template();
    ?>

    Thread Starter Steekvlam

    (@steekvlam)

    Can I bumb this one up?

    Thread Starter Steekvlam

    (@steekvlam)

    No 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

Viewing 11 replies - 1 through 11 (of 11 total)