Creating an accordion style menu

The code for WordPress would be: wp_nav_menu() for custom nav menus wp_page_menu() as the default fallback for custom nav menus wp_list_pages() for a list of static pages See the linked Codex pages for the various parameters to pass to each, and the CSS classes output by each.

How do I turn this form into a search form? [closed]

Please try this , <form name=”searchBox” action=”<?php echo get_bloginfo(‘url’); ?>” class=”search-form” method=”get” role=”search” > <input type=”text” name=”s” class=”searchBox” placeholder=”search” value=”<?= $_GET[‘s’] ?>” required /> <button type=”submit” class=”searchBtn” >search</button> </form>

add additional anchors in navigation menu

Defining a Menu You must define a menu before you can add items to it. Login to the WordPress Dashboard. From the ‘Appearance’ menu on the left-hand side of the Dashboard, select the ‘Menus’ option to bring up the Menu Editor. Select Create a new menu at the top of the page Enter a name … Read more

Site pages show the page title under navigation bar

Your theme (or child theme) is likely using page.php as the default page template. This file likely contains a call to the WP function the_title() which is generating the visible page title. Multiple options to modify this. Assuming you are using a theme which will have updates available, your changes should be made using the … Read more

In category.php I need to get the next 10/previous 10 posts

if the only difference in the category archives is the images, you can work without a custom query. in this case you could use (as suggested here https://developer.wordpress.org/themes/functionality/pagination/#simple-pagination ): <div class=”nav-previous alignleft”><?php next_posts_link( ‘Older posts’ ); ?></div> <div class=”nav-next alignright”><?php previous_posts_link( ‘Newer posts’ ); ?></div> or any other suggestion from https://developer.wordpress.org/themes/functionality/pagination/ for the image, you … Read more

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