BenRacicot
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Video Lightbox] Using the plugin via HTML code, not shortcodeI think it helps but how do I set that up on an
<a href="">
for when someone clicks a link?Like
<a routerLink="<?php echo do_shortcode('[video_lightbox_youtube video_id="" width="640" height="480" alt="alt" auto_thumb="1"] ');?>">Pop up video</a>
- This reply was modified 7 years ago by BenRacicot.
Forum: Plugins
In reply to: [WordPress REST API (Version 2)] Custom endpoint not workingI got this to work finally. Thanks for all who read.
Forum: Plugins
In reply to: [WordPress REST API (Version 2)] WP API can't create a postHey all, I have opened a question on the WordPress.Stackexchange.com site regarding this exactly.
The documentation talks about the request header as ‘X-WP-Nonce’ and then sending along the nonce. Perhaps this is what most everyone’s issue is:
beforeSend: function ( xhr ) { xhr.setRequestHeader( 'X-WP-Nonce', WP_API_Settings.nonce ); }
However with Postman I cannot figure out how to do that?
Please take a look at the StackExchange question.
Wow, Jeroen! Thanks for that info. I guess this is a popular issue with WC but you’re all over it. Right now I’m just going to bookmark your blog post but will be sure to comment there once I dig in.
Forum: Plugins
In reply to: [WordPress REST API (Version 2)] net::ERR_EMPTY_RESPONSEHey Daniel,
Thanks for writing back, much appreciated. It turns out that the issue is directly related to WAMP/MAMP environments and possibly only on Chrome.
This happened after a fresh install of WordPress REST API (Version 2). Spent a lot of time debugging and eventually it came down to a simple restart of Apache and or some obscure php.ini settings:
session.save_handler = files
Take a look at my StackOverflow question for details. Hope this saves someone the time it cost me in the future.
Forum: Plugins
In reply to: [WordPress REST API (Version 2)] Create a new endpointI’m interested in this as well. A tutorial with examples would be fantastic!
Forum: Plugins
In reply to: [Yoast SEO] 3.0.3 Missing Meta Title and Description FieldsI can confirm this error and it is breaking several other JavaScript based functionalities.:
wp-seo-post-scraper-302.min.js:1 Uncaught TypeError: Cannot read property ‘value’ of null
Looking forward to 3.0.4
Forum: Plugins
In reply to: [RICG Responsive Images] Using RICG programmaticallyHey Jasper,
I did end up using my old friend
<picture>
Yes I do have several custom add_image_sizes for my images most of which have no hard crop. Really good info regarding ratios.
I have not changed any media settings only added those custom sizes via code.
Forum: Plugins
In reply to: [RICG Responsive Images] Using RICG programmaticallyJoe, thanks for checking up on me.
Here is what I’ve got:
// :( // $original = wp_get_attachment_image_url( 381); // $mobile = wp_get_attachment_image_srcset( 381, 'mobile' ); // $tablet = wp_get_attachment_image_srcset( 381, 'tablet' ); // :) $original = wp_get_attachment_url( 381 ); $mobile = wp_get_attachment_image_src( 381, 'mobile'); $tablet = wp_get_attachment_image_src( 381, 'tablet' );
Just a side note. I wasn’t able to get srcset to load the (hardcoded or outputted) image per screensize so I resorted to
<picture>
to be explicit. Any input would be appreciated.PS. I’m outputting the smiley face code successfully like this:
echo $original; echo $tablet[0]; echo $mobile[0];
Forum: Plugins
In reply to: [RICG Responsive Images] Using RICG programmaticallyHey Joe,
Thanks for replying. This is so close!
Although I cannot get anything out of these two functions in WP 4.3 with RICG plugin activated:$img_src = wp_get_attachment_image_url( 380, 'medium' ); $img_srcset = wp_get_attachment_image_srcset( 380, 'medium' );
Forum: Plugins
In reply to: [CMB2] how do i make theme options page with this pluginYessir, I’ve been using CMB2 properly for all my metaboxes. Its been amazing. However I’ve added the class to the bottom of my metabox file.
It created the Site Options tab. But the options page itself has only a title.
But I cannot replicate the issue on a fresh WP install. The Site Options page renders 2 metaboxes as expected on a fresh install. Do you have any ideas how to troubleshoot CMB2 that I may have overlooked?
I have shut off all plugins and removed a lot of code try to find some culprit but no luck.
Forum: Plugins
In reply to: [CMB2] how do i make theme options page with this pluginHey @MichaelBeckwith I’ve dropped in that code into my custom metaboxes file and the “Site Options” tab appears in the WP admin. However the options page is blank so it looks like displaying the 2 demo fields does not work out of the box.
Have you seen this happen? Maybe I’m making a mistake, its a big PHP class so that’s def possible. Any help would be appreciated.
Forum: Plugins
In reply to: WordPress Penetration testIt seems that when permalinks are set to Day and name and cookies are not hardened with httponly a possible XSS vulnerability may exist where content may be manipulated via 4-2 parameter in the URL.
*ZAP reports that content on a page has been changed from the original when a 4-2 parameter is placed in the URL.
Forum: Plugins
In reply to: WordPress Penetration testI have installed WP locally via WAMP and am finding a possible XSS vulnerability with ZAP. On pages with https://website/?page_id=4-2 on a local installation I’m getting the warning that the original page content is modified with this 4-2 parameter. Any insight from WP devs would be great! Thanks.
Forum: Plugins
In reply to: [Responsive Widgets] Notice undefined indexThanks Jay! I really need to dig into this plugin again and extend it too… I’ll check out this issue when I jump in. Thanks.