how to use 2 index.php file One for mobile and one for desktop
You can create AMP version of your page for mobile devices. Please check this tutorial: https://amp.dev/documentation/guides-and-tutorials/start/create/basic_markup?format=websites
You can create AMP version of your page for mobile devices. Please check this tutorial: https://amp.dev/documentation/guides-and-tutorials/start/create/basic_markup?format=websites
EDIT 2 Multiple unnamed parameters, starting with equals sign. function postintro_bb_shortcode( $atts ) { // remove equals sign from first unnamed param if ( isset( $atts[0] ) && strpos( $atts[0], ‘=’ ) !== false ) { $atts[0] = substr( $atts[0], 1 ); } // Param array to string $intro = is_array( $atts ) ? implode( … Read more
I am trying to set post terms to a custom taxonomy
To override the default styles you have to use more specific selectors. #wpadminbar .my_menu_item_class { background: yellow; } #wpadminbar .menupop.hover ul li.my_menu_item_class > a { color:red; }
This’s the plugin you’re looking for: https://wordpress.org/plugins/ajax-load-more/ Load more posts, pages and comments using AJAX.
Your reply to gregory24 isn’t really explicit enough I’m afraid.. The reason you can display a FontAwesome icon without the if statement is only because this html <span class=”fa fa-youtube”>…</span> is loaded into the DOM of you page meanwhile your $youtube_profile variable is likely containing some value but your statement is wrong. this should work … Read more
First, Thank you Jacob Peattie for your help. I decided to solve this issue partly (the data being easily readable) with encoding the data using base64_encode() & json_encode() in php and decoding it in javascript with JSON.parse() & atob().
Assuming the $value actually returns a post’s ID. Replace the code wp_add_post_tags( $post_id, $value ); With wp_add_post_tags( $post_id, sanitize_title( get_the_title( $value[0] ) ) );
You haven’t created your filter yet. You can’t just filter a function. You’ll need to call the function apply_filters(), and then you can use it in your functions.php file. So above return $content; add something like this: $content = apply_filters( ‘my_content_filter_name’, $new_content, $content ); Then, use it like this: function modify_store_output( $content ) { $content … Read more
500 error or internal server error is probably caused by a PHP error. By enabling WordPress debug, you’ll easily find where the problem is. You can follow the instructions here https://wordpress.org/support/article/debugging-in-wordpress/#wp_debug_log From your code, it’s easy, you’re missing a semi-column before the closing curly bracket.