mcho
Forum Replies Created
-
Forum: Plugins
In reply to: [Stop User Enumeration] /users is still showing when not logged inYea, someone ticked off that box by accident, and now we ticked it again. Thanks!
Forum: Plugins
In reply to: [Photo Engine (Media Organizer & Lightroom)] How to add paginationSure, I submitted the form there.
Forum: Plugins
In reply to: [Photo Engine (Media Organizer & Lightroom)] How to add paginationThanks for your answer! Is there a way for me to pull only the first 12 images from get_media_from_collection() or second 12 images, etc? If the collection has many images like 400 images, the get_media_from_collection() function returns all of them, which I don’t need since I’ll be adding pages.
Forum: Plugins
In reply to: [Post Types Order] Composer install package?Got it. Thanks!
Forum: Plugins
In reply to: [The Events Calendar] ACF relationship field for past eventsI found the answer myself, and the gist is updated above. Thanks! I’m closing this ticket.
Forum: Plugins
In reply to: [Post Types Order] Composer install package?I don’t see any post types order. do you? did you publish it there?
Forum: Plugins
In reply to: [The Events Calendar] ACF relationship field for past eventsHi, Abz, thanks for your reply. What I am trying to accomplish is the following:
1. to be able to choose a past event in the ACF relationship field, which I have accomplished using this code: https://gist.github.com/asadowski10/369b1b60e9280e9b386043d82623f5e0 There, he seems to be removing pre_get_posts from the the Tribe__Events__Query class to stop The Events Calendar from filtering out the past events.
2. to be able to go to the edit post screen and have the past event selected in the relationship field. I have not accomplished this part of the problem. So right now, I can select a past event and save the post, but when I go back to edit the post, the relationship field shows nothing, and I will have to choose the same event again if I want to have that data persist.
My question in this ticket has to do with 2 above. Is there a class The Events Calendar uses to display the events chosen in the relationship field to the edit post screen, and, if so, how can I turn off filtering there so that I can see the past event already selected for this field?
Let me know if this is not clear.
Thanks!
Hi, I looked at your codes and realized that you don’t show any post types that are hierarchical in the settings, but you enable the drag&drop for any post type when “hide” is not checked. Shouldn’t the follow codes include !isset?
Your current code for
function archiveDragDrop()://check if post type is sortable if(isset($options['show_reorder_interfaces'][$screen->post_type]) && $options['show_reorder_interfaces'][ $screen->post_type ] != 'show') return;What I propose:
//check if post type is sortable if(!isset($options['show_reorder_interfaces'][$screen->post_type]) || isset($options['show_reorder_interfaces'][$screen->post_type]) && $options['show_reorder_interfaces'][ $screen->post_type ] != 'show') return;- This reply was modified 3 years, 10 months ago by mcho.
Hi, thanks! So it works for description. See my code below as a reference. I want to do the same with an ACF field for an image that can popular og:image tags, etc. Do you have a workaround for that? I don’t see anything equivalent to the_seo_framework_generated_description for the seo image in your codes, though.
add_filter('the_seo_framework_generated_description', function($desc, $args) { if (null === $args && tsf()->is_author()) { $tsf = tsf(); $user_id = 'user_'.$tsf->get_the_real_ID(); if (get_field('seo_description', $user_id)) { $desc = get_field('seo_description', $user_id); } } return $desc; }, 10, 2 );Thanks!
Oh, cool. do_meta_output() worked. We are using React and WordPress as a headless CMS, so we use this function to output all the seo tags to the front end from the REST API endpoint. I hope you keep this functionality for our use case scenario. Thank you!
Oh, OK. Thank you for letting me know! I’ll try the workaround and ask you more questions. Should I ask questions in the github issue or in this ww.wp.xz.cn support ticket?
Thank you very much!
I am composer installing this package, “wpackagist-plugin/autodescription”: “^4.2”, and I did do a fresh new composer install just now, and I don’t see that html_output() is outputting anything. Is this change in the package, yet?
Also, I’m wondering if you had a reason to make html_output() to be private, in the first place. If so, is your decision to make it public now conflicting with your previous reasoning?
Actually, I see that the_seo_framework()->get_html_output() still works, though you said it’s deprecated here (https://theseoframework.com/changelog/4-2-0-perfect/). Is it not deprecated? Can I still use it?
What is it called exactly on the Packagist repository?
- This reply was modified 3 years, 12 months ago by mcho.