WordPress/Server outputting strange result

At this point we are doing basic debug… I would start by disabling all plugins (or start with your custom plugins first). Navigate the backend and see if the issue occurs. If it’s all good, then enable each plugin 1 at a time and check the backend after each plugin is enabled. If the issue … Read more

Automatically create a loop for post ID

“The Loop” is already a loop, so I don’t see the need for your second loop. In fact, the secondary while loop shouldn’t work because you keep resetting it to 1 for every post. You also have some PHP syntax issues like $echo (that’s a variable) instead of echo and the way you concatenate the … Read more

Generating embed code for users to share

Try following code. This will display embed code in the bottom of the page. <?php add_filter(‘the_content’,’my_custom_embed_code’); function my_custom_embed_code( $content ){ global $post; if ( ‘page’ == $post->post_type ) { $embed_code=””; $page_url = esc_url( get_permalink($post->ID ) ) ; $embed_code .= ‘<object data=”https://wordpress.stackexchange.com/questions/160604/.$page_url.” width=”100%” height=”500″><embed src=”https://wordpress.stackexchange.com/questions/160604/.$page_url.” width=”100%” height=”500″></embed> Error: Embedded data could not be displayed. Visit <a … Read more

checkbox function not working for dropdown menu

As per the wp_nav_menu() function the default classes are like below: <ul class=”menu”> <li><a href=”#”>Menu</a></li> <li> <a href=”#”>Menu</a> <ul class=”sub-menu”> <li><a href=”#”>SubMenu</a></li> <li><a href=”#”>SubMenu</a></li> </ul> </li> <li><a href=”#”>Menu</a></li> </ul> Note that, the .menu and .sub-menu. May be you are messing with the wrong class names, and some class conflicts.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)