Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter LinusPWR

    (@linuspwr)

    After some testing i realized i just had to add this to the form:

    <input type=”hidden” name=”bawac_force_nonce” value=”<?php echo $_REQUEST[‘bawac_force_nonce’]; ?>” />

    Thread Starter LinusPWR

    (@linuspwr)

    Well, seems like i lied.

    I forgot about a little special thing to the theme… It has a view for handling some images for the custom startpage.
    This was called outside the function that displays the form handling the image upload:

    if ( ! did_action( 'wp_enqueue_media' ) )
            wp_enqueue_media();

    That is, this was always called. I moved these lines inside this function and now it works.

    Thread Starter LinusPWR

    (@linuspwr)

    No. ??
    But the only line that has something to do with media.

    The theme works on my local machine, but on the “live” (not live yet) site i get this error. Therefor i’m starting to think there’s a DB-error on the other site we’re building up somewhere?

    However, there’s one difference between the sites. On the “live” site it’s WP 3.7 while i’m running 3.7.1 on my local machine. But this should not affect this? When i started to work on this project i used 3.7 on my localhost as well.

    Thread Starter LinusPWR

    (@linuspwr)

    Hey esmi and thanks for reply.

    As i said, it’s completely written by myself.
    functions.php conatines this line;
    <?php add_theme_support( 'post-thumbnails' ); ?>

    and that’s all i’ve done with this. well, i do ask for a featured image later in the theme, but that should not have any thing to do with assigning an image?

    i’ve tried to rename the plugins-folder to see if there’s a plugin causing this error, but no luck there.

    Thread Starter LinusPWR

    (@linuspwr)

    Ah sorry. I’m just a bit stupid. It does work. But i only get 5 posts, it seems to be default.
    i had to add ‘posts_per_page’ => -1.

    Thread Starter LinusPWR

    (@linuspwr)

    Thanks,

    But i get the same result with that one too. Only the posts. Ideas?

    Thread Starter LinusPWR

    (@linuspwr)

    Ah. post_type ‘any’. Cool.

    Do i have to make a WPQuery()? I tried

    $args = array('post__in' => $array_wit_ids, 'post_type' => 'any');

    But it gave the same result.

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