Ultimate Sidebar

How to Put Post Links in a Navigation Menu in Thesis Theme

104 47
    • 1). Log in to Wordpress and select "Dashboard."

    • 2). Click "Custom File Editor" under "Thesis Options" in the left pane.

    • 3). Scroll down to the end of the code in the Custom File Editor. Move the cursor to an empty space below the code.

    • 4). Select the "custom_functions.php" file from the drop-down menu at the top of the Custom File Editor, then click "Edit Selected File."

    • 5). Copy the code to add recent posts into the navigation menu into the Custom File Editor:

      function posts_nav() {

      echo '<li><a href="/links/?u=">Blog</a><ul>';

      wp_get_archives('title_li=&type=postbypost&limit=10');

      echo '</ul></li>';

      }

      add_action('thesis_hook_last_nav_item','posts_nav');

    • 6). Change the post limit to the number of recent posts that you want displayed in the navigation menu. Within the code, the post limit is controlled by "('title_li=&type=postbypost&limit=10')." Change the number "10" to the number of post links you want added.

    • 7). Click the "Save" button.

Source: ...
Subscribe to our newsletter
Sign up here to get the latest news, updates and special offers delivered directly to your inbox.
You can unsubscribe at any time

Leave A Reply

Your email address will not be published.