Replace text in post from cvs

Best thing to do is to write your own CSV import php file. By using functions like wp_insert_post() you can insert the data from the csv file as a new post in the wordpress database. If you’re not a coder, which I’m sensing, you can try this plugin: https://wordpress.org/plugins/wp-ultimate-csv-importer/. The free function offers everything you’re … Read more

WP dynamic featured image – Can’t get second featured image url

To get featured images of specific post/page use these below code – if( class_exists(‘Dynamic_Featured_Image’) ) { global $dynamic_featured_image; $featured_images = $dynamic_featured_image->get_featured_images( $postId ); //You can now loop through the image to display them as required } Please follow this link – https://github.com/ankitpokhrel/Dynamic-Featured-Image/wiki/Retrieving-data-in-a-theme

Changing layout with wp_customise

You need to check against the value of layout: if ( get_theme_mod( ‘layout’ ) === ‘stream’ ) { // Stream } elseif ( get_theme_mod( ‘layout’ ) === ‘grid’ ) { // Grid } else { // Fallback }

hook that when page is starting to load

Well, when exactly do you consider the page to be “starting to load”? get_header() is typically the first function to fire as the html of a theme is starting to generated. It fires the get_header action. Numerous hooks fire prior to that, at different points, the very earliest being muplugins_loaded I believe. wp_loaded, by the … Read more