deeltje
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Orderby title doesn't sort numbers correctlyForum: Fixing WordPress
In reply to: Orderby title doesn't sort numbers correctlyThe problem is that the custom_field I’m using only works after the:
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>This is my custom_field
$nummer = get_post_meta($post->ID, $shortname.'schilderijnummer_value', true);And this is the query post:
[Code moderated as per the Forum Rules. Please use the pastebin]
Forum: Plugins
In reply to: [NKMImageField] [Plugin: NKMImageField] WP 3.1, image-url doesn't work!!!!Nathan,
Thanks so much, the Advanced Custom Fields plugin works perfectly. You wouldn’t happen to know a plugin like that, that also supports contact-forms-per-post?
I need like a contact-form-option for every post i make, so i can make a link in the post to a contact-form which will automatically include all the post-information (including maybe the custom-fields). So when someone will use the contact-link from post-1 all the info from post-1 will be included in the form to the end-user (client).
Any ideas?
(i actually just need a booking-plugin, but they’re all paid services, so this was my work-arround idea).
Forum: Plugins
In reply to: [NKMImageField] [Plugin: NKMImageField] WP 3.1, image-url doesn't work!!!!Thanks Nathan, I sure hope you’ll be able to find something. Right now i’m letting the client copy-paste the img-url to that field, because that still works and the client doesn’t mind (lucky me). But i’d really like an alternative, because I use a lot of custom-picture-things in my webdesign.
Lemme know ok? 🙂
Forum: Everything else WordPress
In reply to: Get thumbnails in custom fields?Doc4,
Is there anyway to get this to work without alternating the base-code of WP? And with 3 different thumbnails?
Forum: Everything else WordPress
In reply to: Get thumbnails in custom fields?Doc4; Thats really great, the only thing is;
What thumbnail are you talking about here, because WP has 3 thumbnails created.– small
– medium
– bigHow do I know which thumbnail is gonna turn up with your code?
With your current code, it looks like you are taking the variable that is used to generate 3 different thumbnails and replacing it with a locked-var. Doesn’t this create an overwrite/same_file problem?
isn’t it possible to use something like the link below:
http://codex.wordpress.org/Function_Reference/wp_get_attachment_image_src
Forum: Fixing WordPress
In reply to: [displaying standard image]Custom field image, if no image excistsI figured it out myself (pfff not easy without any php knowledge)
Code was:
<?php echo get_nkm_imageurl('customfoto'); ?>Code now is:
<?php $emptyvar = 'http://www.url.ext/client/wp-content/themes/theme/images/nophoto.jpg'; $var = get_nkm_imageurl('customfoto'); if ($var == '') { echo $emptyvar; } else { echo $var; } ?>All I need to do now is implement
<?php bloginfo('template_url'); ?>into the emptyvar, no idea how to do that yet…
Forum: Themes and Templates
In reply to: Auto-detect Category<?php if ( is_page() ) { $cats = wp_get_post_categories($author->ID); $args=array( 'cat' => $cats[0], 'showposts'=> 6, 'author_name' => 'Specific_Username' ); } $my_query = new WP_Query($args); while ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate = $post->ID; ?>I’m beginning to understand this 😉
Thanks a LOT for all your help!
Forum: Themes and Templates
In reply to: Auto-detect CategoryYeah I know links to authors_posts, but I want to show the posts of specific authors.
Forum: Themes and Templates
In reply to: Auto-detect CategoryAnd again, here I go 🙂
How do I display posts per specific user ?
something with the_author ?
(The user is a subscriber)
Forum: Plugins
In reply to: [searching for specific plugin] Users able to post from a formThis looks perfect! Thanks a lot!
P.S.: Is there a way to search through extend/plugins by date/favorites/wp-version?
Forum: Themes and Templates
In reply to: Auto-detect CategoryNo I’m putting the code in header.php, which worked so far, the only thing that didn’t work was the category detection on single.php.
The reason I started this post was because I wanted to use minimalized code, sure I could easely put the code in index.php/category.php and single.php instead, but if it’s possible not to, then that would be just a whole bunch greater 😉
Or isn’t this possible because single is in a different hierachy then category.php? And is that the reason why index.php would just take all the new posts also?
Forum: Themes and Templates
In reply to: Auto-detect CategoryPerfect, but now it only detects on single.php, on the index.php and category.php it doesn’t detect any posts anymore 😉
Maybe an -else- somewhere?
(Thanks very much for removing the url btw!)
Forum: Themes and Templates
In reply to: Auto-detect Category<?php if ( is_single() ) ( $cats = wp_get_post_categories($post->ID); $args=array( 'cat' => $cats[0], 'showposts'=> 6 ); } $my_query = new WP_Query($args); while ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate = $post->ID; ?>I’ve got that right now, but this doesn’t work.
I don’t understand the } closing bracket… isn’t this suppose to be a ) ?I’ve also tried to close the ) and replace the last } with a ), but that doesn’t work either.
<?php if ( is_single(); ); ( $cats = wp_get_post_categories($post->ID); $args=array( 'cat' => $cats[0], 'showposts'=> 6 ); ); $my_query = new WP_Query($args); while ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate = $post->ID; ?>P.S.: Would you be so kind to remove the URL I mentioned some posts above this one?
Forum: Themes and Templates
In reply to: Auto-detect CategoryIt did the trick for categories but with single posts it still shows the 6 newest posts of all categories.
The reason I want this to work, is because i’m using a content-slider in the header. I want it to show the posts in the specific categories and of specific categories. On the homepage it does what it has to do, showing all the newest posts of all categories.
[link moderated]
I’m sorry for not being clear enough ….