arnii
Forum Replies Created
-
Forum: Plugins
In reply to: [Postie] [Plugin: Postie] Is there a way to post to Custom Post Types?@mstracylee, did you find a solution for this?
Thanks.
Forum: Fixing WordPress
In reply to: Related Posts by Custom TaxonomySorry,
<?php //for in the loop, display all "content", regardless of post_type, //that have the same custom taxonomy (e.g. genre) terms as the current post $found_none = '<h2>No related posts found!</h2>'; $taxonomy = 'persona';// e.g. post_tag, category, custom taxonomy $param_type = 'persona'; // e.g. tag__in, category__in, but genre__in will NOT work $tax_args=array('orderby' => 'date'); $tags = wp_get_post_terms( $post->ID , $taxonomy, $tax_args); if ($tags) { foreach ($tags as $tag) { $args=array( $param_type => $tag->slug, 'post__not_in' => array($post->ID), 'post_type' => 'live', 'showposts'=> 4, '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(); ?> <h3><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3> <?php $found_none = ''; endwhile; } } } wp_reset_query(); // to use the original query again ?>
Forum: Fixing WordPress
In reply to: Related Posts by Custom TaxonomyCannot get this working… First of all, it lists the results two times. Second, it lists all posts with the right post-type, with no connection between tags (custom taxonomy)…
If it’s to any help, the code looks like this;
<?php
//for in the loop, display all “content”, regardless of post_type,
//that have the same custom taxonomy (e.g. genre) terms as the current post
$found_none = ‘<h2>No related posts found!</h2>’;
$taxonomy = ‘persona’;// e.g. post_tag, category, custom taxonomy
$param_type = ‘persona’; // e.g. tag__in, category__in, but genre__in will NOT work
$tax_args=array(‘orderby’ => ‘date’);
$tags = wp_get_post_terms( $post->ID , $taxonomy, $tax_args);
if ($tags) {
foreach ($tags as $tag) {$args=array(
$param_type => $tag->slug,
‘post__not_in’ => array($post->ID),
‘post_type’ => ‘live’,
‘showposts’=> 4,
‘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(); ?>
<h3>” rel=”bookmark” title=”<?php the_title(); ?>”><?php the_title(); ?></h3>
<?php $found_none = ”;
endwhile;
}
}
}
wp_reset_query(); // to use the original query again
?>Forum: Fixing WordPress
In reply to: Include custom field values in search@keesiemeijer
The problem is, that when I use your code there, it breaks the default search.But anyway, thank you very much for your efforts. I don’t think it’s possible to do what I want.
@anointed
I answered your email yesterday ??Forum: Fixing WordPress
In reply to: Include custom field values in search@keesiemeijer
It actually to make it easier for the client. I’m using the plugin More Fields, to make custom fields for those data.Furthermore it’s much easier to work with the data that way in the templates.
Forum: Fixing WordPress
In reply to: Include custom field values in search@keesiemeijer
That didn’t do anything… Actually I’m surprised that this isn’t included in the default search. Custom fields are often used for data which should be searchable.Forum: Fixing WordPress
In reply to: Include custom field values in search@ keesiemeijer
That could be a possibility. I’m going to try that and let you know…@anointed
Thanks! It has been an exciting project –?and yeah, maybe I should write a tutorial on this. There are so many great technically things on this site.Forum: Fixing WordPress
In reply to: Include custom field values in searchIt does work, but I cannot filter just one category with that plugin. Right now when I search a movie here; https://filmfestival.dk/en/category/programme/ the results get another layout than the default search, it only search one category, etc. These settings aren’t possible with the plugin…
Forum: Plugins
In reply to: Post Expirator in templateCount me in! I would really love to do this…
Forum: Plugins
In reply to: [Plugin: Contact Form 7] submission successful but no emailUPDATE. The mail is received. But I really don’t get it. In Safari / FF the mail is received almost immediately. When I use the form through IE, the mail is received a couple of hours after the submission.
Just weird. But hey – it works…! In some way…
Forum: Plugins
In reply to: [Plugin: Contact Form 7] submission successful but no emailAll right, I have the same problem as everyone here. But what is totally weird here, is that everything works as it should in Safari and Firefox. But in IE7 and IE8 Contact Form tells me that the mail is sent. But I never receives the mail.
In the other browsers I do…
As I see it, it cannot be a server problem, if it works in some browsers and not in others.
Any suggestions on that?
Forum: Plugins
In reply to: Contact Form 7 not working with jQuery 1.4?Alle right, just found a solution. It was a conflict between the CF7 redirect and the pretty permalinks. I replaced;
$url = wpcf7_get_request_uri();
WITH
$url = ‘/index.php/’.parse_url($_SERVER[‘REQUEST_URI’]);
And is working again…
Forum: Plugins
In reply to: Contact Form 7 not working with jQuery 1.4?CF7 doesn’t work in IE7. The AJAX loader just keeps on going. Nothing happens.
In Safari and Firefox everything works like a charm…
Any suggestions?
Ref.: https://www.ediva.dk/ (click “Kontakt” in the top right to see the form)
Any help is highly appreciated!
Thanks…
Forum: Fixing WordPress
In reply to: Role Scoper is f****** my site upKevin, thanks! You’re the man…
And yes, now I can leave office smiling. Go home and keep the rest of the day off (it’s 7.45PM here)
Thanks…Forum: Plugins
In reply to: Random page childrenOkay, I almost got it;
<?php $rand_module = get_posts('static=true&child_of=37&number=2&orderby=rand'); foreach( $rand_module as $post ) : ?> DO STUFF <?php endforeach; ?>
But somehow the number=2 doesn’t work. The function gives me ALL of the children in random order. Anyone know how to limit this?
Thanks…