Franz Buttssortht
Forum Replies Created
-
Forum: Plugins
In reply to: [Multiple Post Thumbnails] [Plugin: Multiple Post Thumbnails] Newbe questionsI think the keys were, the additional ) in line 1 and using ” instead of ‘ around {$mpt_image}-image.
Forum: Plugins
In reply to: [Multiple Post Thumbnails] [Plugin: Multiple Post Thumbnails] Newbe questionsOoops. I wasn’t aware of the rules regarding code. Here you go:
Forum: Plugins
In reply to: [Multiple Post Thumbnails] [Plugin: Multiple Post Thumbnails] Newbe questionsSorry about that formatting.
Forum: Plugins
In reply to: [Multiple Post Thumbnails] [Plugin: Multiple Post Thumbnails] Newbe questionsIt never fails… once you post something you figure it out minutes later. It was a simple syntax thing. The code below works for me:
[Code moderated as per the Forum Rules. Please use the pastebin]
Forum: Plugins
In reply to: [Multiple Post Thumbnails] [Plugin: Multiple Post Thumbnails] Newbe questions@chris Scott
I think I’m having the same problem as mauricenaef, which is a blank page because of (a suspected) syntax error. I added another ) to the first line:
<?php if (class_exists('MultiPostThumbnails')) {
and the page will then display, but the images aren’t displaying. Going back to:
<?php if (class_exists('MultiPostThumbnails') && MultiPostThumbnails::has_post_thumbnail('post', 'secondary-image')) : MultiPostThumbnails::the_post_thumbnail('post', 'secondary-image', NULL, 'thumbnail'); endif; ?>
for each works fine, but that gets to be a ton of code. It would be nice to have your posted loop work. Unfortunately, I don’t know enough to fix it.
Jeff, this plugin is great. In fact, I donated. But that link seems wrong. I think it should be this:
https://www.jfarthing.com/docs/Theme_My_Login
Even with the correct link, it seems the shortcode area is empty.
For those trying to get this to work:
in wp-content/plugins/theme-my-login/modules/themed-profiles/themed-profiles.php
Replace
} elseif ( $this->theme_my_login->is_login_page() && ( isset( $_REQUEST['action'] ) && 'profile' == $_REQUEST['action'] ) && isset( $_REQUEST['instance'] ) ) { $redirect_to = remove_query_arg( array( 'instance' ) ); wp_redirect( $redirect_to ); exit(); }
with the code above.
Worked for me.
Forum: Fixing WordPress
In reply to: Calling a particular custom field from ALL postsExclude by meta_value, that is.
Forum: Fixing WordPress
In reply to: Calling a particular custom field from ALL postsAnd as a good support forum user, here’s how this was implemented. I wanted to spit out the meta_value (image path) for all my portfolio images, so I could create a one-click slideshow with Colorbox. You will notice I added “ORDER BY meta_value ASC” to get them in order.
<?php // this yanks the thumb from every post $thumbs = $wpdb->get_col(" SELECT p.meta_value FROM $wpdb->postmeta p INNER JOIN $wpdb->term_relationships a ON p.post_id = a.object_id JOIN $wpdb->term_taxonomy b USING (term_taxonomy_id) JOIN $wpdb->terms c USING (term_id) WHERE p.meta_key = 'thumb' ORDER BY meta_value ASC ");?> <?php foreach ($thumbs as $thumb){ echo '<a href="'.get_bloginfo('template_directory').'/'.$thumb.'" rel="slideshow"></a> '; } ?>
It’s not absolutely necessary, but if I could find a way to exclude certain ones whenever I wanted, that would make this perfect.
Forum: Fixing WordPress
In reply to: Calling a particular custom field from ALL postsThat actually worked perfectly, after I removed:
AND c.name = 'WORK'
Thanks!