Replies
Thanks for your help Brajesh. I achieved what i want in other way.
I repleced permalink function in grid tile elements with custom url: /gallery/%gallery_id%/ . I leading by default to page in index.php template. Then, i included “if” function in my index.php. It checks if url has gallery id. If so it includes template part (by standard WP function) and display gallery using shortcode. If no it means this is root galleries page and template display standard gallery grid.In this way i save whole Buddypress feature and display custom gallery page aswell.
I hope this solution will help other users.
Regards! 🙂
Ok, i checked this solution but it solves nothing. I still have Buddypress parts in page layout. Only thing changed is customized navs.
I’m looking for solution that grants me possibility to display member gallery without Buddypress.
It will be nice too if i can change gallery url’s from this:
…/members/member_name/mediapress/gallery_name/to this:
…/galerie_uzytkownikow/gallery_name/Hi Brajesh,
I’m using customized Twentyfifteen theme. I have Buddypress directory and Mediapress directory aswell. For example my customized index.php which displays gallery grid is located in /mytheme/mediapress/default/buddypress/directory/ .
- This reply was modified 8 years, 8 months ago by Piotr.
Thanks for your reply!
I have tried use bp_activity_get_comment_count function which i think is responsible for a activity counting. But, like i said, that functions doesn’t work. Please post the code. I will try to modify it in my custom theme. Maybe with some luck i will make it 🙂
Regards!
This is what i need to change:
http://i63.tinypic.com/2i24gft.pngAnd this is code in index.php i think it have to be edited:
<div class="item-list-tabs" role="navigation">- <li class="selected" id="mpp-all">
pages->mediapress->id ); ?>"><?php printf( __( 'All Media <span>%s</span>', 'mediapress' ), mpp_get_total_media_count() ) ?><?php do_action( 'mpp_directory_types' ) ?>
<li id="mpp-order-select" class="last filter">
<?php _e( 'Filter By:', 'mediapress' ) ?>
<select>
<option value=""><?php _e( 'All Galleries', 'mediapress' ) ?></option>
<?php $active_types = mpp_get_active_types(); ?>
<?php foreach( $active_types as $type => $type_object ):?>
<option value="<?php echo $type;?>"><?php echo $type_object->get_label();?> </option>
<?php endforeach;?>
<?php do_action( 'mpp_gallery_directory_order_options' ) ?>
</select></div><!-- .item-list-tabs -->
Hi Brajesh,
Thank you for your reply. I used custom mpp media query but get response “No media found”. I used that query just below shortcode – list from shortcode has beed displayed bud custom query doesn’t.
I’m trying to create copy of loop-gallery.php (named loop-media.php) and edit it to display media instead gallery. But like i wrote before – i get “false” from first function: “mpp_have_media()” so no media items are displayed. And yes i do this in my custom template. I’m leaving alone core plugin files.