Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter similaustudios

    (@similaustudios)

    Forgot to mark as “resolved.” Thanks!

    Thread Starter similaustudios

    (@similaustudios)

    FINALLY!!!

    Provided by “mores

    “Something I created for a client was a template that lists posts from a category that has the same name as the page.
    So, create a Page called “funnies” if you want to list all posts in the “funnies” category.
    Oh, and the original content of the Page is displayed too, if you need an introductory text.”

    <?php /*
    Template Name: ListPostsInCategoryThatHasSameNameAsPage
    */ ?>
    
    <?php get_header(); ?>
    
    <div id="content">
    <div id="main">
    
    	<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    	<h1><?php the_title(); ?></h1>
    		<?php the_content(); ?>
    	<?php endwhile; else: endif; ?>
    
    	<?php query_posts('category_name='.get_the_title().'&post_status=publish,future');?>
    	<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    	<h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
    	<p><?php the_content(); ?>
    	<?php endwhile; else: endif; ?>
    
    </div>
    </div>
    
    <?php get_footer(); ?>

    “The template can be named anything you want – call it “pagecat.php” or something.
    Then upload to your theme’s directory.
    THEN, write a Page – and in the options under the editor, you’ll find a “template” dropdown. Select “ListPostsInCategoryThatHasSameNameAsPage” ??

    Then give the Page a title, for example, “tree”.
    The Page will then show up in the navigation, and when you click on it, it will display all posts of the “tree” category under the actual Page content.

    The only thing I think you got wrong was the “tree.php”, since the template file “pagecat.php” can be used over and over again, that’s the beauty of it.
    Other than that, your analysis was correct.”

    Thanks, Morse!

    Thread Starter similaustudios

    (@similaustudios)

    “You can also add custom links in your wp menu.” -https://support.themekraft.com/entries/21621451-custom-menu

    But there are no instructions or information on how to accomplish this. Does anyone know? I would be more than happy to back-track and answer others’ unanswered questions regarding this if someone here could help. It seems to be a common question which has yet to be answered.

    Thanks again.

    Thread Starter similaustudios

    (@similaustudios)

    I have seen both of these resources (I know how to use google lol) and I have already searched the forums but nothing seems to address my specific problem with a solution.

    This is the most relevant information I can find and, as another within that thread has pointed out, it is incomplete information and does not tell you how to REPLACE the default navigation with a custom one, only how to CREATE a custom menu.

    I can create a custom menu but there is no way to impliment it within the Custom Community Theme. Custom Community apparently creates its own default navigation menu and I can’t change that to load a custom menu. Others who have asked this question seem to have gone unanswered, I was just hoping I might get lucky :-p

    Thanks again and I hope I have made my problem more clear.

    I’m not one of the professional helpers here but usually the footer text can be found/edited in (your theme name here)/core/includes/theme-generator/theme-generator.php. You cannot access this through the “editor” so you will need an ftp client (like Dreamweaver) to access this file. Hope this helps and good luck ??

    Thread Starter similaustudios

    (@similaustudios)

    Disregard, server error.

    Thread Starter similaustudios

    (@similaustudios)

    I deleted everything and reinstalled and and it worked! I had no idea files could be corrupted, so thank you, you were a life-saver!

    I really appreciate your time and help, thank you so much ??

    Thread Starter similaustudios

    (@similaustudios)

    I guess I don’t understand what that will accomplish since this was a fresh install to begin with (there were no files or folders on my server at all prior to the upload). It takes SO much time to upload all of the wordpress files and I don’t want to waste another hour of my time doing that, ya know? Is there something that could have gone wrong with the first upload/install attempt that I should try to avoid the second time?

    Thread Starter similaustudios

    (@similaustudios)

    This is a brand new website and a brand new installation so there were no older files or folders :-/ Or are you saying I should just do it over? If so, what should I do differently next time?

    Thanks so much for the quick reply! It is so much appreciated.

Viewing 9 replies - 1 through 9 (of 9 total)