Replies
Ok,
Here is a slightly modified version of your last functionfunction list_author_used_terms($author_id){ // get the author's posts $posts = get_posts( array('post_type' => 'post', 'posts_per_page' => -1, 'author' => $author_id) ); $author_terms = array(); //loop over the posts and collect the terms foreach ($posts as $p) { $terms = wp_get_object_terms( $p->ID, 'collection'); foreach ($terms as $t) { $author_terms[$t->term_id] = $t; } } return $author_terms; }
and here is an example use
$terms = list_author_used_terms( 1 ); $links = array(); foreach( $terms as $term ) { $links[] = sprintf( "<a href='%s'>%s</a>", get_term_link( $term ), $term->name ); } echo join( '', $links );
Hope that helps.
That is where I found it.
here is the cover image for that galleryhttp://sacredvale.org/wp-content/uploads/mediapress/members/3/3300/soninv2010h-200×200.jpg
So MediaPress is correctly uploading/saving it.
When you try to access that image, you will see the error message.
Are you sure you don’t have this plugin installed
https://wordpress.org/plugins/wp-performance-pack/See here an example
https://wordpress.org/support/topic/all-images-broken-when-un-installingI do not use that plgin, so you need to somehow allow wp-content/mediapress to be accessed.
- This reply was modified 9 years, 3 months ago by Brajesh Singh.
You have some plugin/rewrite rules causing this issue. If I directly try to access the mediapress image, I see this message
WPPP dynamic images deactivated for this site
Can you please look into that.
- Brajesh Singh on October 1, 2015 at 8:50 am in reply to: [Resolved] Fantastic plugin ut I get an error… andy chance of assistance? #663
Wow, That was some fast reply 🙂
Sure, we are going to have some good time today after the release 🙂 - Brajesh Singh on October 1, 2015 at 8:47 am in reply to: [Resolved] Fantastic plugin ut I get an error… andy chance of assistance? #661
Hi Jan,
Just updating that a new update is coming in couple of hours now. That should fix all the bugs. Thank you. It will need some css. Will check with social login today and provide you the css.
Hi george,
Can you please point me to your site/activity page?- Brajesh Singh on October 1, 2015 at 8:45 am in reply to: buddyblog display posts and custom post type at the same time #658
Hi Richard,
Thank you
1. You are right about that. The reason is I used ‘buddyblog_get_posttype()’ in the array. You can replace that by the custom post type and it won’t need you to select them in the settings.
2. This requires a change in core file, Please open buddyblog-functions.php and on line 58
change
$count = $wpdb->get_var( $wpdb->prepare( "SELECT count('*') FROM {$wpdb->posts} WHERE post_author=%d AND post_type=%s AND (post_status='publish'||post_status='draft')", $user_id, buddyblog_get_posttype() ) );
to
$count = $wpdb->get_var( $wpdb->prepare( "SELECT count('*') FROM {$wpdb->posts} WHERE post_author=%d AND (post_status='publish'||post_status='draft')", $user_id ) );
That will do it.
- Brajesh Singh on October 1, 2015 at 8:41 am in reply to: Blog Categories for groups – feature request – more blogs displayed #657
Hi George,
The plugin should allow pagination. Is it not allowing that? Hi,
Just trying to find some clarifications here.
A Term can be used by more than one user, is that correct?Also, you only want to display the terms used by the user and not all the terms in that particular taxonomy?