LinusPWR
Forum Replies Created
-
Forum: Plugins
In reply to: How to build forms correct for BAW Anti CSRFAfter 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’]; ?>” />
Forum: Fixing WordPress
In reply to: Featured image is "semi-dead"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.
Forum: Fixing WordPress
In reply to: Featured image is "semi-dead"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.
Forum: Fixing WordPress
In reply to: Featured image is "semi-dead"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.
Forum: Fixing WordPress
In reply to: Get_posts and include pagesAh 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.Forum: Fixing WordPress
In reply to: Get_posts and include pagesThanks,
But i get the same result with that one too. Only the posts. Ideas?
Forum: Fixing WordPress
In reply to: Get_posts and include pagesAh. 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.