Replies
- Brajesh Singh on February 17, 2016 at 7:36 pm in reply to: [Resolved] Mediapress – Media loop instead gallery loop #2673
Hi Piotr,
That is correct because you are not passing the component/component id.
Try this code<?php $mppq = new MPP_Media_Query( array( //'gallery_id' => mpp_get_current_gallery_id(), 'component' => 'members', 'component_id' => bp_displayed_user_id() ) ); ?> <?php if( $mppq->have_media() ): ?> <?php while( $mppq->have_media() ): $mppq->the_media(); ?> <div class="mpp-u <?php mpp_media_class( mpp_get_media_grid_column_class() );?>"> <?php do_action( 'mpp_before_media_item' ); ?> <div class='mpp-item-entry mpp-media-entry mpp-photo-entry'> <a href="<?php mpp_media_src('full') ;?>" class="mpp-item-thumbnail mpp-media-thumbnail mpp-photo-thumbnail"> <img src="<?php mpp_media_src('thumbnail') ;?>" /> </a> </div> <div class="mpp-item-actions mpp-media-actions mpp-photo-actions"> <?php mpp_media_action_links();?> </div> <?php do_action( 'mpp_after_media_item' ); ?> </div> <?php endwhile; ?> <?php mpp_reset_media_data(); mpp_reset_gallery_data(); ?> <?php endif;?>
Here we are saying that list all the media from displayed user. Please let me know if this works for you or not?
- This reply was modified 9 years, 7 months ago by
Brajesh Singh.
- This reply was modified 9 years, 7 months ago by
Brajesh Singh. Reason: Correcting endif
- This reply was modified 9 years, 7 months ago by
- Brajesh Singh on February 17, 2016 at 6:14 pm in reply to: [Resolved] Mediapress – Media loop instead gallery loop #2670
Hi Piotr,
the mpp_have_galleries() and mpp_have_media() work with global queries.What you are trying to do is create a custom loop where mpp media query may not be initilized.
What I recommend is using custom mpp media query like this
https://buddydev.com/mediapress/topics/api-reference/core/mpp_media_query/
And here is the list of Media Template tags( or you can copy it from any of those loops included)
https://buddydev.com/mediapress/guides/api-reference/template-tags/media-template-tags/Are you trying to override some MediaPress specific page or just create a new page to list media. There are shortcodes available too like the below
https://buddydev.com/mediapress/topics/getting-started/shortcodes/mpp-list-media/That you can use.
Hope that helps. Please do let me know if you need further help.
Thank you
BrajeshPS: Please make sure to keep the overrides in your theme.
- Brajesh Singh on February 17, 2016 at 10:48 am in reply to: Understanding MediaPress Activity privacy #2668
Hi George,
Thank you for posting.The BP Activity privacy plugin is not required just optional if you want to enforce the restricted activity visibility.
Can you please let me know what type of issues you are facing at the moment?
Thank you
Brajesh - Brajesh Singh on February 17, 2016 at 10:46 am in reply to: Conditional Fields Plugin: Not Showing Required Fields On A Non-Base Field-Group #2667
Hi Johny,
I am sorry for the inconvenience.
1. On this forum you can not modify your topic but you can modify your replies. That is by design here.2. About the plugin, Is that happening on registration page or the profile edit page?
Hi Carl,
Appreciate your prompt responses. I had received your messages and was not able to find a proper reason. I will be looking at it more today and will get back to you.Thank you
Brajesh- Brajesh Singh on February 14, 2016 at 11:19 pm in reply to: MediaPress 1.0.1 Create Gallery Form #2660
Hi Leo,
Thank you for pointing. I have pushed a new version(1.0.2) on WordPress.org repo. Should be available in 5 minutes for upgrade. Please do upgrade and let me know if you see any issue.Thank you
Brajesh - Brajesh Singh on February 14, 2016 at 10:43 pm in reply to: MediaPress 1.0.1 Create Gallery Form #2658
Hi Leo,
I am sorry I spoke too soon.yes, It is happening if a theme is using theme compat. A fix is coming in next 30 minutes. I am sorry, I should have checked with themes like twenty sixteen earlier.
- Brajesh Singh on February 14, 2016 at 10:41 pm in reply to: MediaPress 1.0.1 Create Gallery Form #2657
Hi Leo,
Have you enabled any plugin recently. I just tested to make sure that it is not appearing twice. It is only possible if plugins.php template file is loaded twice on the create gallery screen. Can you please post me a screenshot? Since you mentioned that It is same on all theme, most probably it is due to some plugin or code.Can you please post me a screenshot?
Thank you
Brajesh Hi Carl,
Is it possible that you can send me a screenshot of the page showing php notice?My email id is brajesh@buddydev.com. Looking at query.php, It seems that is_page is throwing the notice. MediaPress may be the region behind it but at least till now, MediaPress does not uses any is_page() call, so It is being called by some 3rd party code.
This is the line throwing error in query.php
in_array( $page_obj->post_name, $page )
So, The reason is $page_obj does not exist and some plugin is trying to so something with the is_page check. a look at the error placement, May give me some idea what are they trying to change.
Thank you
Brajesh- This reply was modified 9 years, 7 months ago by
Brajesh Singh.
- This reply was modified 9 years, 7 months ago by
- Brajesh Singh on February 14, 2016 at 9:57 pm in reply to: [Resolved] Conditional Profile Fields Plugin : xpfields is not defined Error #2653
Hi Matt,
It seems to be working fine for me. Can you please post me a screenshot showing the issue?Do you have the conditions applied form fields in multiple groups?