Replies
- Brajesh Singh on October 4, 2015 at 11:33 am in reply to: buddyblog display posts and custom post type at the same time #764
Hi Richard,
What is the post type name. ‘Concours’ is the label of that post type( seems to me as WordPress recommends using lower cases for the name )Also, If I understand it correctly, you want it for ‘post’ as well as ‘Concours’ both. Is that right?
- Brajesh Singh on October 4, 2015 at 11:25 am in reply to: Error when running BP Gallery with CanvaKala #763
Hi George,
Can you please PM me the login details. Seems like that plugin is premium and I can not check the code. Will look on your site and see what is causing this. Thank you Milo.
You helped improve this plugin and I am happy it is working now. Closing this topic. Please feel free to open new topic if you need any help 🙂Thank you
BrajeshOops, a Php file should start with
<?php //you code //your code
If you missed the first php tag, These are the error you get. Sorry about this trouble.
In that case, please create one
Here is a link to understand it.https://buddydev.com/docs/guides/guides/buddypress-guides/what-is-bp-custom-php/
Hi Milo,
No problem 🙂
Here is the codehttps://buddydev.com/support/forums/topic/ajax-registration-with-social-login/page/2/#post-738
and bp-custom.php should be in your wp-content/plugins directory.
Hope that helps.Hi Milo,
Did you put the code I posted here in your bp-custom.php?Hi eGuard,
You can use the template on as many pages as you want. Just use bp_get_template_part() to include this file where you want.As you mentioned, the only thing that changes on different pages is the arguements passed to bp_has_members
There are two ways to handle that. you write a function that returns appropriate arguements for each of these use and pass the returned value to bp_has_members()
The second approach is to filter
`bp_before_has_members_parse_args’ or ‘bp_after_has_members_parse_args’ and modify the argument based on the current page.
Hope that helps.
Will get back to you on the other topic a little late today.
Thank you
Brajesh- Brajesh Singh on October 3, 2015 at 3:21 pm in reply to: buddyblog display posts and custom post type at the same time #743
Hi Richard,
1. Yes
2. Currently, I was not filtering for post types, so most probably you are checking for admin account and even the pages are being listed there. If you want to query only for a few post types, you will need to modify that query and add something liek this
post_type =’post__type1′ || post_type=’post_type2′ etc. If you can provide me the post types you need, i will supply the complete query.
- Brajesh Singh on October 3, 2015 at 3:19 pm in reply to: [Resolved] Modify a imporant function in BuddyPress Activity Comment Notifier #742
Hi Richard,
Thank you for posting this.The problem with second approach is that while the url may be valid for newer comments/activity( if there are less than 20 activities), It won’t work if an activity goes out of the current page loop( being old enough). That’s why we are linking to the single activity thread.
Does that clarify the use case or you still see the point in making it like the second one?
I am open to suggestions and will love to improve the plugin