Boris
Forum Replies Created
-
EDIT :
add_filter('register_post_type_args', 'learnpress_cpt_add_gutenberg_support', 10, 2); function learnpress_cpt_add_gutenberg_support ($args, $post_type) { if (in_array($post_type, array( // 'lp_course', 'lp_lesson', ))){ $args['show_in_rest'] = true; } return $args; }- This reply was modified 7 years, 6 months ago by Boris.
@electra > Uhm?
Further notes : add this in your child theme’s functions.php file :
add_filter('register_post_type_args', 'learnpress_cpt_add_gutenberg_support', 10, 2); function learnpress_cpt_add_gutenberg_support ($args, $post_type) { if (in_array($post_type, array('courses', 'lessons')) { $args['show_in_rest'] = true; } return $args; }Never mind ; I found how to do that by editing files contained in:
/wp-content/plugins/learnpress/inc/custom-post-typesand using the following tutorials:
Forum: Plugins
In reply to: [Resize Image After Upload] Conflicts with ShortPixel PluginHi,
I too had a problem with “Resize Image After Upload” when “ShortPixel Image Optimizer” was installed (although not activated) : the media library said the image was resized to dimensions specified with “Resize Image After Upload” while the real full image dimensions was those specified in “ShortPixel Image Optimizer”.
Forum: Plugins
In reply to: [Polylang] Navigation Menu Disappears on one of the languagesBTW, for those who are having the same issue I had 2 seconds earlier, eg languages menu disappearing when switching to Spanish and Italian (or any other language), you might want to check the Menus Manager, and check if your languages sidebar is set to display on every language placement.
Forum: Plugins
In reply to: [Polylang] Navigation Menu Disappears on one of the languages@moeg721 > OMG, how do you dare asking for help on forums and when your issue is solved just come back to say “Found the error!”. Do you have any respect at all for the internet?
I found a way to do creating a filter based on those found at billerickson.net
I don’t know how robust this is though.
/** * Display Posts Shortcode */ function be_dps_post_content( $output, $original_atts, $image, $title, $date, $excerpt, $inner_wrapper, $content, $class ) { $new_content = $content; $new_content = preg_replace("#([\r\n]+)<hr />([\r\n]+)(\w)#isU", "<hr />$3", $new_content); $new_content = nl2br($new_content); $output = str_replace($content, $new_content, $output); return $output; }Hi pootlepress,
Thanks for the quick answer and the video.
Here is my video response : http://youtu.be/J8tnhKjyUFA?hd=1
Thanks again,
Boris
- This reply was modified 9 years ago by Boris.
Forum: Plugins
In reply to: [Recent Posts Widget Extended] Display all posts in child-categoriesI’m facing this problem when using the shorcode version. The only solution I can come up with is putting all posts in the mother category as well as the child category.
Forum: Plugins
In reply to: [Recent Posts Widget Extended] shortcode for row?I don’t know if I got you question right, but if so, I think advance CSS selectors are the solution to your problem. Check this page : https://developer.mozilla.org/en-US/docs/Web/CSS/:nth-child
Forum: Plugins
In reply to: [Recent Posts Widget Extended] ShortcodeForum: Plugins
In reply to: [Recent Posts Widget Extended] Inserting into pageForum: Plugins
In reply to: [Recent Posts Widget Extended] multiple category on shortcode not workingHi,
I too would like to know the solution to this issue.
@traceyorr > I tried your syntaxe but did not manage to make it work.
Forum: Themes and Templates
In reply to: [Sela] style.css fail to load once in a whileHi !
So I may have find a reason for this problem. Thanks to Google Search Console, I figured out there were two versions of my site : the http one and the https one. And the thing is images displayed using absolute URLs (with http in them) failed to load, and so did stylessheets.
I didn’t even know SSL was included in my hosting plan but, anyway… After some researches and a lot of tries and errors, I managed to edit the .htaccess file to redirect https to http, by adding the following code above all the code already added by WordPress :
<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTPS} on RewriteRule ^(.*)$ http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] </IfModule> # BEGIN WordPress etc.It really is important to add this BEFORE WordPress generated code, or else it will not work (because of the L flag in WordPress Rewrite rules ?).
I’m not sure this solves all loading problems, but I guess so, so I will mark the topic as “solved”.
Thanks again for your help Kathryn 🙂
Forum: Plugins
In reply to: [Recent Posts Widget Extended] Problem with shortcode when using tag or catHey ! It worked !!! Thanks shillier 🙂
It took me a few minutes to find the tag and categories ids, until I figured out it was mentionned in the URL when editing or hovering the said tag or category.
Thanks again !
Boris