y2gabs
Forum Replies Created
-
Thanks! done. Is there anything specific that I should be looking for that would give me a clue as to why it’s failing to combine css/jss?
Forum: Plugins
In reply to: [Custom Content Shortcode] Using in single CPT templateI’ve solved this issue… it was my understanding of CPT that was causing my issue ??
Forum: Plugins
In reply to: [Custom Content Shortcode] custom post type and is authorHi Peter, I was able to successfully get this working to display those posts where the logged in user is the author. Is it possible to use the same [pass] parameters to filter for bp_displayed_user_id instead and display a list of a displayed user’s posts on their buddypress profile page?
Forum: Plugins
In reply to: [Custom Content Shortcode] custom post type and is authorthanks Peter! This worked. I definitely read and re-read the advanced documentation but I was hung up on passing something referencing the author in the pass argument rather than the user and passing that user to the loop.
Thanks again.
Forum: Plugins
In reply to: [Custom Content Shortcode] custom post type and is authorThanks Peter! So would it look something like this?
[Pass id=get_current_id]
[loop author=id]Sorry for the noobness, I’m barely scratching the surface of the advanced stuff with this plugin.
Thanks again!
Forum: Plugins
In reply to: [BP Profile Search] Results Page retrieve displayed members’ IDsThanks Andrea. The problem is that ‘global $saved_user_ids;’ doesn’t seem to contain anything. I’ve tested my function with just a string and assigning a string to a variable that’s returned in a shortcode and it all works fine. But calling anything from saved_user_ids variable just returns blanks. Are you sure that’s the appropriate global variable? I can’t seem to figure this out :/
Forum: Plugins
In reply to: [BP Profile Search] Results Page retrieve displayed members’ IDsThank you so much Andrea. One problem is that I’m trying to add the Message URL via widget (long story) and without using some additional code enabled widget. So my only option is to do so with a shortcode. Is there an adjustment to the code provided above that would let me insert the URL as a shortcode or at least the dynamic portion as a shortcode?
Thanks again!
Forum: Plugins
In reply to: [BP Profile Search] Results Page retrieve displayed members’ IDsHi Andrea! Thank you so much for your help here and I sincerely apologize for my tardy response. I only have the time to try this code on the weekends due to fulltime weekday job but am now on holidays and can dedicate more to this project. So I tried the code again last weekend by adding it to functions.php as follows. And tried calling it via shortcode in to my URL. I am indeed able to get the URL to work no problem with static user IDs (comma separated as discussed) but the following code does not seem to return anything. Any help you can provide would be greatly appreciated. Thank you so much again!
add_filter ('bps_search_results', 'save_user_ids'); function save_user_ids ($user_ids) { global $saved_user_ids; $saved_user_ids = $user_ids; return $user_ids; } add_shortcode( 'displayed_user_ids', 'save_user_ids' );
- This reply was modified 5 years, 2 months ago by y2gabs.
Forum: Plugins
In reply to: [BP Profile Search] Results Page retrieve displayed members’ IDsThank you so much sir for your help here. Sorry for my delay, I had to wait to the weekend to implement. Could you help me understand a little bit. How can I get the above code to output a string of displayed user ids with commas between each? Trying to use this function with a shortcode call in my functions.php doesn’t seem to be displaying anything.
Thank you so much!
Forum: Plugins
In reply to: [BP Profile Search] Results Page retrieve displayed members’ IDsThank you sir for your reply here! I’m using a messaging plugin (as an alternative to the buddypress msg functionality) that opens a new message window and includes the recipients in the “To” field who’s user IDs are included in the new message url. So it would look like this:
https://mydomain.com/blahblah/new message&uid=1,5,6,etcClicking that link would open a new message for the users with those IDs. So usecase is someone filters for desired users, results page includes a dynamic link generated by displayed users link described above, and a message box pops up with those filtered users in the To field.
Make sense?