drupal 7 custom module to import csv file and add file content into content type

I have created custom module. but dont know how to read uploaded file data and add into perticular content type. HTML File upload is displayed but after upload file unable to read content. function custom_add_node_data_menu() { $items = array(); $items[‘custom_add_node_data/add_data’] = array( ‘title’ => ”, //page title ‘description’ => ”, //description show when mouse hover…

Loop in Related Posts WordPress

I use this script to display related posts: <!– Related Posts START–> <?php $query = get_max_related_posts(); if ( $query ) { ?> <div class=”td_block_wrap td_block_7 td_block_widget td_uid_3_5de39f94df644_rand td-pb-border-top td_block_template_1″> <h4 class=”block-title”> <span class=”td-pulldown-size”>Berita Terkait</span> </h4> <div class=”td_block_inner”> <div class=”td-block-row”> <?php while ( $query->have_posts() ) { $query->the_post(); ?> <div class=”td-block-span6″> <div class=”td_module_6 td_module_wrap td-animation-stack”> <div class=”td-module-thumb”>…

How to display an RSS feed according to an order defined by the value of an ACF (Advanced Custom Field) of an original post-type?

I have created a custom post-type called “event”. For this custom post-type I created an advanced custom field called “event_date”. Now I am trying to display the list of my events in a RSS feed. I figured out how to display custom fields and featured image in my RSS feed but I cant figure out…

WordPress CSP and SRI

.htaccess security I have tested my website at https://observatory.mozilla.org/ and I receive the following two errors: Content Security Policy -25 Content Security Policy (CSP) header not implemented -Subresource Integrity -5 Subresource Integrity (SRI) not implemented, but all external scripts are loaded over HTTPS I’ve been trying to fix it all morning, but there’s no way…

code is escaping div

This is in my header.php file. When I inspect the site elements everything is contained within the “coll-full” div except for the last item “custom-primary-menu.php”. Instead it is within the div that contains “coll-full”. Is there something obvious I am doing wrong? <div class=”col-full”> <?php echo do_shortcode (‘[woo_multi_currency_layout5]’); include (‘secondary-icon-menu.php’); include (‘custom-primary-menu.php’); ?> </div>