Undefined index – get_option

By default get_option gets you the value of your option. I don’t know anything about the specific option or the way it’s configured. But basic knowledge of PHP suggests to me that the option simple_news_settings doesn’t have an array key of simple_news_checkbox_css in some cases. So PHP is telling you the array doesn’t have the … Read more

Form tries to download a file on submit

To attach a file to the email, you need to specify the Path to it like this: <?php $attachments = array( WP_CONTENT_DIR . ‘/uploads/file_to_attach.zip’ ); $headers=”From: Test Name <[email protected]>” . “\r\n”; wp_mail( ‘[email protected]’, ‘subject’, ‘message’, $headers, $attachments ); ?> either is a string or an Array (for multiple files), you can see the accepted parameters … Read more

Building a Article Library within WP?

This could be achieved with custom fields or a custom table in the wpdb. Using ACF (Advanced Custom fields) you could assign a checkbox, or some field to each article and you can allow logged in users to check out certain articles and not allow other users to view that article whilst it is “checked … Read more