Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #9232

    Saruul H
    Participant

    Will you be adding any “sitemap” feature in near future? Tnx.

    #9264

    Kory
    Keymaster

    Hey Saruul,

    Thanks for writing in! While we don’t have any plans for this in the near future, we have noted this internally and will see what we can do in a coming release of X.

    Thanks!

    #23890

    ngrhd
    Participant

    +1 for one click/shortcoded sitemap generator!

    #23894

    Mark P
    Participant

    It’s easy to do already. Create a page named Sitemap. Create 2 widget areas in the middle of the page. In one widget area, drop the “pages” widget into it. In the other widget area, drop the “recent posts” widget. BOOM! Now you have a sitemap…

    #24127

    Christian
    Moderator

    Thank you for your tip Mark.

    #67078

    Claudius M
    Participant

    Hallo Great Support Team,
    is there something new about this sitemap functionality?

    Marks tip is good, but won’t implement categories and also we get the dates with posts.

    With a different theme from a competitor I can for example create a page with following code. Is there a way to use create a similar archive/sitemap page with the X Theme?

    <div class=”archive-page”>

    <h4><?php _e( ‘Categories:’, ‘genesis’ ); ?></h4>

      <?php wp_list_categories( ‘sort_column=name&title_li=’ ); ?>

    <h4><?php _e( ‘Pages:’, ‘genesis’ ); ?></h4>

      <?php wp_list_pages( ‘title_li=’ ); ?>

    </div><!– end .archive-page–>

    <div class=”archive-page”>

    <h4><?php _e( ‘Recent Posts:’, ‘genesis’ ); ?></h4>

      <?php wp_get_archives( ‘type=postbypost&limit=600’ ); ?>

    </div><!– end .archive-page–>

    Thanks

    #67451

    Mrinal
    Member

    Hi Claudius,

    This kind of template creation requires extensive work, which is out of our support scope. I’ll suggest you to create a sitemap page using this plugin: http://wordpress.org/plugins/wp-sitemap-page/ which allows you to order the elements as you want.

    Hope this helps, Cheers!

    #812305

    I am super frustrated, I have 22 pages being blocked by X Theme functions. While the theme is pretty it is NOT GOOD FOR SEO

    Take a look at how bad this is for me, currently Google is not indexing 22 pages, HTTP is timing out I am at a loss and don’t know how to fix or what to do. I have never had this issue with the 20 other sites I designed’.

    Help please

    #812812

    Rad
    Moderator

    Hi there,

    Is there any available information why they are blocked? They are just javascript files from plugins, and similar plugins are used for different theme and sites too. Does that mean they are blocked too?

    Thanks!

    #816803

    Mbzo
    Participant

    Hi, a sitemap template would be very useful.
    Sometimes plugins are too complex for a simple task. I used Google xml sitemaps plugin but it is not human readable.

    This post helped me alot to understand how to make a custom template for a basic sitemap:
    https://community.theme.co/forums/topic/custom-full-width-page-template/

    All I needed was a page to display a list of posts by category, sorted by post title.

    1) Copied the full width template in the x folder and renamed it template-sitemap.php:

    <?php
    
    // =============================================================================
    // TEMPLATE NAME: Sitemap
    // -----------------------------------------------------------------------------
    // Handles output of full width sitemap page.
    //
    // Content is output based on which Stack has been selected in the Customizer.
    // To view and/or edit the markup of your Stack's index, first go to "views"
    // inside the "framework" subdirectory. Once inside, find your Stack's folder
    // and look for a file called "template-sitemap.php," where you'll be
    // able to find the appropriate output.
    // =============================================================================
    
    ?>
    
    <?php x_get_view( x_get_stack(), 'template', 'sitemap' ); ?>

    2) Duplicated the full-width template in the STACK/VIEWS folder and renamed it template-sitemap.php.

    <?php
    
    // =============================================================================
    // VIEWS/INTEGRITY/SITEMAP.PHP
    // -----------------------------------------------------------------------------
    // Sitemap fullwidth page output for Integrity.
    // =============================================================================
    
    ?>
    
    <?php get_header(); ?>
    
      <div class="x-container max width offset">
        <div class="<?php x_main_content_class(); ?>" role="main">
    
    <!-- DO THE SITEMAP -->
    <?php
    // Add categories to exclude in the exclude here
    $cats = get_categories('exclude=');
    foreach ($cats as $cat) {
      echo "<h3>".$cat->cat_name."</h3>";
      echo "<ul>";
      $archive_query = new WP_Query('posts_per_page=-1&order=asc&orderby=title&cat='.$cat->cat_ID);
      while ($archive_query->have_posts()) { $archive_query->the_post();
        $category = get_the_category();
    	  echo '<li><a href="'.get_permalink().'" title="'.get_the_title().'">'.get_the_title().'</a></li>';
    	  }
      echo "</ul>";
    }
    ?>
    <!-- END DO THE SITEMAP -->
    
        </div>
      </div>
    
    <?php get_footer(); ?>
    #816923

    keenimedia
    Participant

    Hi Mbzo,

    I tried your code snippets above and followed your instructions for the stack i’m using “renew” but still couldn’t get it to work.

    #817044

    Mbzo
    Participant

    If i copied the code correctly it should be identical for Renew

    The only modification made to the view template-layout-full-width.php was renaming it template-sitemap.php and subsituting lines 16-19:

          <?php while ( have_posts() ) : the_post(); ?>
            <?php x_get_view( 'renew', 'content', 'page' ); ?>
            <?php x_get_view( 'global', '_comments-template' ); ?>
          <?php endwhile; ?>

    for this:

    <?php
    // Add categories to exclude in the exclude here
    $cats = get_categories('exclude=');
    foreach ($cats as $cat) {
      echo "<h3>".$cat->cat_name."</h3>";
      echo "<ul>";
      $archive_query = new WP_Query('posts_per_page=-1&order=asc&orderby=title&cat='.$cat->cat_ID);
      while ($archive_query->have_posts()) { $archive_query->the_post();
        $category = get_the_category();
    	  echo '<li><a href="'.get_permalink().'" title="'.get_the_title().'">'.get_the_title().'</a></li>';
    	  }
      echo "</ul>";
    }
    ?>

    Then any page using that template should be able to display the content.

    #817059

    Jade
    Moderator

    Hi @keenimedia,

    Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password
    – FTP credentials

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Thanks for helping out @mbzo. 🙂

    #822270

    FYI, Google is blocking my last couple of blog posts which I do weekly, in fact I am getting pages that are not even being indexed by Google at all due the attached file which I have yet to get help with. I need help, I will now send another message about what the attached file scripts are literally blocking half my pages and 2 blog posts.

    I so frustrated and I don’t know what to tell my client. I don’t even understand why that script is built into every page but then again I am a front end person not back end. I am at your mercy I really need help

    #822280

    Here it is 44 pages submitted only 23 indexed and it is just getting worse for me