Make a permalink to the most recent blog post

Use get_posts with posts_per_page => 1 to get only one latest result. You can than use get_permalink() to get the permalink. $args = array( ‘posts_per_page’ => 1, ‘orderby’ => ‘date’, ‘order’ => ‘DESC’, ) ; $latest_posts = get_posts($args); $permalink = get_permalink($latest_posts[0]->ID);

Automatically add new posts to a specific menu name

Posts are blog entries. They will post to your blog only. Pages are to your site and listed like a normal website. So you won’t see blog posts on your page menus other than your blog name. To access posts simply go to posts in your dashboard

wp_nav_menu changed to wp_page_menu

Found the answer i’ve added changed the wp_nav_menu args to this: wp_nav_menu(array( ‘theme_location’ => ”, ‘menu’ => ”, ‘container’ => ”, ‘container_class’ => ”, ‘container_id’ => ”, ‘menu_class’ => ‘menu’, ‘menu_id’ => ”, ‘echo’ => true, ‘fallback_cb’ => ‘wp_page_menu’, ‘before’ => ”, ‘after’ => ”, ‘link_before’ => ”, ‘link_after’ => ”, ‘items_wrap’ => ‘<ul id=”%1$s” … Read more

Site with all content on the front page

You can just create a HTML page with anchor links: 1- Link pointing to the anchor (Content) <a name=”allin”></a> <div>Content</div> 2- Create the anchor (menu). <a href=”#allin”>Link here</a> Although, i must confess i might not completely understood what you want/need. But as s_ha_dum said your question is to wide you need to start with some … Read more

deleted menu still present [closed]

Sometimes these things get messed up. If you have access to database, try to delete transient options (look for any keys that contains “transient” and/or your deleted menu name) from wp_options table

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