Sort categories on Front page

Homepage Community Forums Skope Theme Support Sort categories on Front page

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #11478
    stig
    Customer

      Hi. I wonder how I can sort out some categories from showing on the front page or just specify what categories to show . I know there is a function in Genesis settings, but it not affecting the front page. How can I solve this

      #11482
      Eric
      Customer

        I believe the skope theme uses the same code to display the posts on the front page in the same way as the portfolio page template, right? If that’s the case, are there any options for it in your Genesis Theme settings? It should be near the portfolio settings at the bottom if it’s available. If not, then something else may need to be done in order to make it happen since this is a separate template file.


        I create awesome sites for awesome people! Contact me if interested – ericsanchez1585@gmail.com

        #11485
        stig
        Customer

          Yes that’s true. There is a code in the end of home.php that’s build an portfolie look of the post. And there is an “custom loop” that get the categories and show post, It also seems that it have some code to exclude categories, but I am not sure how to configure it.

          Here is the code.
          // Add custom loop
          add_action(‘genesis_loop’, ‘skope_home_loop’);
          function skope_home_loop() {
          $paged = get_query_var(‘paged’) ? get_query_var(‘paged’) : 1;

          $include = genesis_get_option(‘skope_home_cat’);
          $exclude = genesis_get_option(‘skope_home_cat_exclude’) ? explode(‘,’, str_replace(‘ ‘, ”, genesis_get_option(‘skope_home_cat_exclude’))) : ”;

          $cf = genesis_get_custom_field(‘query_args’);
          $args = array(‘cat’ => $include, ‘category__not_in’ => $exclude, ‘showposts’ => genesis_get_option(‘blog_cat_num’), ‘paged’ => $paged);
          $query_args = wp_parse_args($cf, $args);

          genesis_custom_loop( $query_args );
          }

          #11565
          stig
          Customer

            Can someone please try to help me?

            If the function to sort categories is broken, is there any possibility to remove all the post at the front page?

            Changing theme settings don’t work and if I remove the code the posts still shows up with a different layout.

            #11566
            stig
            Customer

              I actually just found out how to remove all post..

              Simple as it sounds.. I just removed the “custom loop” code.

              But, then again.. I still want to show post and choose what categories to be shown.

              #11576
              Eric
              Customer

                I need to get the latest version of this theme and test it out first, I want to make sure it’s possible. I’ll download and test it tomorrow and let you know.

                you could probably turn it into a template file and then you should be able to create a Page and add the category at the bottom. You can test that if you want, I’ll be able to look at it soon.


                I create awesome sites for awesome people! Contact me if interested – ericsanchez1585@gmail.com

              Viewing 6 posts - 1 through 6 (of 6 total)
              • You must be logged in to reply to this topic.