Comment by naththedeveloper on wordpress: on send email save fields to...
Check your error logs because 500 error usually writes more information to the log, or turn on error reporting
View ArticleComment by naththedeveloper on Wordpress is removing 'data' attribute from...
I'm inserting a post in Wordpress and this is the content of the post. - Inserting how? Using the CMS? Using the API? Directly into the DB? Clearly something is stripping that content, understanding...
View ArticleComment by naththedeveloper on Prevent saving of custom post type
You can add define('ACF_LITE', true); to your wp-config.php to stop the ACF plugin from registering it's user interface (which will prevent your clients from saving ACF field configurations) but will...
View ArticleComment by naththedeveloper on Cannot read property 'Velocity' of undefined
try jQuery.Velocity instead
View ArticleComment by naththedeveloper on How do I declare a PHP var from a post type...
$context['jobs'] and $jobs are not the same, it needs to be if(is_array($context['jobs'])) and your loop needs to be $context['jobs'] as $job
View ArticleComment by naththedeveloper on timestamp converts to wrong date php
The correct timestamp for that date is 1466636709, where are you getting that timestamp from?
View ArticleComment by naththedeveloper on Adding a WordPress filter in a class/spacename
"it throws an error" - what error?
View ArticleComment by naththedeveloper on can I calculate difference between 6 AM to 12...
6 hours is correct... 12AM (18 hours later) would be the next day...
View ArticleComment by naththedeveloper on PHP Using a Library via Composer To An...
require './vendor/autoload.php'; should automatically include what you need, you don't need to include or require things yourself if they are installed by Composer.
View ArticleComment by naththedeveloper on No releases available for package...
SSL cert has expired again today, how fun..
View ArticleComment by naththedeveloper on Why does get_posts() work but not WP_Query(...
$query->p isn't the number of posts found, you should use $query->found_posts for the count... or $query->posts for the actual results array.
View ArticleAnswer by naththedeveloper for Laravel set between digits in validation
You seem to be using digits_between but you need to be using just between (docs).'item' => 'required|integer|between:1,10',
View ArticleAnswer by naththedeveloper for How to render site as if it were on an iPhone?
If you're using a Mac you can use Xcode to debug iPhone or iPad using a combination of iOS simulator and Safari.Open iOS simulator as usual, now in Safari (on your Mac, not in the simulator) under the...
View ArticleAnswer by naththedeveloper for Filtering the $allowedtags global in WordPress
Add a filter which resets the global to an empty array before your current action fires.function reset_allowed_tags() { global $allowedtags; $allowedtags = array();}add_action('init',...
View ArticleAnswer by naththedeveloper for PHP function not getting called through ajax
When you POST to PHP (via AJAX in your case), those data variables are not set as globals. They are set in the $_POST array.You can use them directly or set them to your global variables (just ensure...
View ArticleAnswer by naththedeveloper for PHP arrays and array objects
The simplest way would be to just cast the array to an object.$todayarray[] = (object) Array( ... );See a working demo.Read more about type casting on the PHP manual
View ArticleAnswer by naththedeveloper for White screen after BASE URL change in PHP?
You're missing the opening quotes on some of your lines...if($k=='bgimage') { $v = 'https://www.domain.com/modules/possequence/images/bgimage_'.$slideArray['id_pos_sequence'].'.jpg';}if($k=='image') {...
View ArticleAnswer by naththedeveloper for How to use the_permalink(); wordpress in...
Your concatenation is incorrect. You should concatenate it like this:$result = $wpdb->get_results( "SELECT * FROM wp_custom_link WHERE link= '".get_permalink()."'");Note that I am using...
View ArticleAnswer by naththedeveloper for How to open media browser from tinyMCE window?
I needed to do this for an image upload today, I couldn't figure it out immediately either, I stumbled upon your question while looking and it set me off the right direction. Here's how I got it...
View ArticleAnswer by naththedeveloper for YouTube API v3 get latest video uploads for a...
Use the channels endpoint with a forUsername attribute (see the documentation for the endpoint).GET...
View Article
More Pages to Explore .....