nazzilla
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: single.php doesnt work with scheulde postonly if i’m log in in my wp i can see content of future page
why?Forum: Fixing WordPress
In reply to: single.php doesnt work with scheulde postyes, firefox sometimes show content, sometimes no,
how i can fix it?why content doesnt appear?Forum: Fixing WordPress
In reply to: Disable scheduled postother problem
in firefox i see correct single page if i click on a post
but in other browser there’s error page not found
try this pagethere’s a way to fix?
i try to use cron, but dont work.What define(‘DISABLE_WP_CRON’, true) do exatly?Forum: Fixing WordPress
In reply to: Disable scheduled postYeah!
but i prefer to use custom category-id.php, each for category,beacause i need to change visualization, and work with my last code posted 🙂
thankz a lot!Forum: Fixing WordPress
In reply to: Disable scheduled posti forget, i use this code
<?php $args=array( 'post_type' => 'post', 'post_status' => 'future,publish', 'posts_per_page' => -1, 'caller_get_posts'=> 1 ); $my_query = null; $my_query = new WP_Query($args); if( $my_query->have_posts() ) { while ($my_query->have_posts()) : $my_query->the_post(); ?> <div id="post-<?php the_ID(); ?>" class="post"> <?php $category = get_the_category(); $currentcat = $category[0]->cat_name; ?> <?php if ($currentcat == "news"){ ?> <h2 class="storytitle"><?php the_title(); ?></h2> <?php } else { ?> <h2 class="storytitle"><a href="<?php the_permalink() ?>" rel="<?php the_title(); ?>"><?php the_title(); ?></a></h2> <?php }; ?> <?php the_date('','<h4>','</h4>'); ?> <div class="storycontent"> <?php the_content(__('(more...)')); ?> </div> <div class="back-top"><a href="#topmenu" title="back to top">Back to top</a></div> </div> <?php endwhile; } else { ?>; <p><?php _e('Sorry, no posts matched your criteria.'); ?></p> <?php } wp_reset_query(); // Restore global post data stomped by the_post(). ?>Forum: Fixing WordPress
In reply to: Disable scheduled postok work fine!
now there’s other problem, if i what show post by category loop show all post, exatly i see index.php post like category.php, it’snt sort by category.
you can see it hereForum: Fixing WordPress
In reply to: Disable scheduled postin which way can be helpfull for me use define(‘DISABLE_WP_CRON’, true)?
what kind of function it’s?
what it did?Basically:I want show future and past post in same loop,
or better , “say” to core when you post ignore the date sort/order, pls 🙂i hope you can undestand, my eng is terrible
Forum: Fixing WordPress
In reply to: Disable scheduled postnice!
it workbut
i’ve other condition in the query, if i put this code before other i’ve 2 kind of query post
i can disable it from the core or this is only one solution?Forum: Themes and Templates
In reply to: How do I display the current page number in my theme?you can use something like
<?php if (have_posts()) : ?> <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts("category_name=catname&showposts=3&paged=$paged"); ?> <?php if ( $paged == 1 ) { ?>Forum: Themes and Templates
In reply to: how to display current comment page?if you have a code like this
<?php if (have_posts()) : ?> <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts("category_name=catname&showposts=3&paged=$paged"); ?>you can use
<?php if ( $paged == 1 ) { somecode } ?>Forum: Fixing WordPress
In reply to: Page people go to after Registrationi do redirect, in same page where user do login with:
redirect_to=<?php echo “http://” . $_SERVER[‘HTTP_HOST’] . $_SERVER[‘REQUEST_URI’]; ?>add this in form like or where-you-want:
<form id=”loginform” action=”<?php echo site_url(‘wp-login.php’, ‘login_post’) ?>?redirect_to=<?php echo “http://” . $_SERVER[‘HTTP_HOST’] . $_SERVER[‘REQUEST_URI’]; ?>” method=”post” name=”loginform”>Forum: Fixing WordPress
In reply to: Place login in page headinglike this:
<form id="loginform" action=" <?php echo site_url('wp-login.php', 'login_post') ?>&redirect_to=index.php" method="post" name="loginform"> username: <input type="text" name="log" id="user_login" class="input" value="<?php echo esc_attr($user_login); ?>" size="20" tabindex="10" /> password: <input type="password" name="pwd" id="user_pass" class="input" value="" /> <?php do_action('login_form'); ?> <input name="login" type="submit" value="<?php esc_attr_e('Log In'); ?>" id="login" class="bottone-login" /> </form>