Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Page & Category Menu Bars »

[SOLVED] what is 'parent' in category menu???


  #1  
Old Feb 4, 2012, 09:12 PM
bondigor69
 
1 posts · Feb 2012
hey guys It might sound stupid but can someone explain to me what is parent in the category menu.
I change the colors and everything but there is no changes maybe I misunderstood the meaning of "parent"
  #2  
Old Feb 4, 2012, 09:30 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
Sub-categories have a parent.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #3  
Old Feb 5, 2012, 04:10 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
It depends...
If you use the WordPres custom menu, you could put a category under a page so the page would be the parent.

or, lets say you have the categories 'animals' and 'frogs' and 'frogs' is a sub-category of 'animals'. You decide to make a custom menu - you could add 'frogs' as a menu item, then add 'animals' as a sub page, making 'frogs' the parent menu item. So now you would have a sub-category the parent menu item.

Custom menus can get messy - you could even have a page a sub menu item for a category.

If you change teh custom menu add 'frogs' again and make it a sub-page of 'animals', you have created a version of that old song "I'm my own grampa"
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #4  
Old Mar 16, 2012, 06:49 PM
apienovi
 
25 posts · Sep 2011
This might be a completely different conversation, but if I want a post that is in a category, say in gear on my site www.kneedeepflyfishing.com is there a way I could make all posts in the gear category, go to a GEAR PAGE instead?

In other words can I have posts that are labled under certain categories go to certain pages?

Forgive me if this is confusing.
  #5  
Old Mar 16, 2012, 07:16 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
what you are looking for is a category page. If you want a Page to show all the posts for a particular particular category, there is a template in the Gold Forums Tutorials you could use to do it (the gold forums are avaliable to members who have donated $20 or more)
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #6  
Old Mar 16, 2012, 09:47 PM
apienovi
 
25 posts · Sep 2011
Ok so I donated $20 because you guys are awesome! Can you point me in the right direction for the tutorial?

Thanks,
  #7  
Old Mar 17, 2012, 01:10 AM
apienovi
 
25 posts · Sep 2011
I downloaded the template and uploaded into the theme file. I tested it on a new page and its working I just don't know how to make it pull from a certain category. I looked at the http://codex.wordpress.org/Function_...ce/query_posts page but I cant figure it out.

Where do I put the category name that I want the page to show?

Thanks,
  #8  
Old Mar 17, 2012, 01:40 AM
apienovi
 
25 posts · Sep 2011
I figured out where to put the category name and my new page is now pulling from the category that I want it to. Now my only question is how do I get a new page to pull from another category?

Thanks,
  #9  
Old Mar 17, 2012, 02:32 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Create a new page, select the template, add the custom query field in using 'cat=nn' or 'category_name=xxxxxxxx' for the value
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #10  
Old Mar 17, 2012, 11:07 AM
apienovi
 
25 posts · Sep 2011
How do I add the custom query? Do I copy and paste this for each page?

<?php
list($bfa_ata, $cols, $left_col, $left_col2, $right_col, $right_col2, $bfa_ata['h_blogtitle'], $bfa_ata['h_posttitle']) = bfa_get_options();
get_header();
extract($bfa_ata);

$custom_fields = get_post_custom($post->ID);
$my_custom_field = $custom_fields['custom_query'];
$args = '';
foreach ( $my_custom_field as $key => $value )
if ($key == 'custom_query') {$args= $value;}

$paged = get_query_var('paged');
if (!$paged) {
$paged = get_query_var('page');
if (!$paged) {
$paged = 0;
}
}

$args= $args."&paged=$paged";

query_posts( array ( 'category_name' => 'Video', ) );
?>
  #11  
Old Mar 17, 2012, 04:48 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
all you need do is
1) create a page
2) select the template 'JUGGLEDAD's Multi Column/Custom Query'
3) add a custom field called 'custom_query'
4) put a custom query in the value field. The value would look like
HTML Code:
category_name=Direction
or
HTML Code:
category_name='Staff House'
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #12  
Old Mar 18, 2012, 01:54 PM
apienovi
 
25 posts · Sep 2011
GOT IT!! Thanks so much. I was struggling because my custom fields was not showing up. Then I realized I just needed to change it in screen options.

Thanks so much again,

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
showing child category menus when selected the parent category mlluch Page & Category Menu Bars 6 Apr 27, 2011 01:12 PM
Trying to display Parent Category as header for Sub-Categories rodrigo Post-Kicker, -Byline & -Footer 4 Aug 26, 2010 10:47 AM
Help with parent category php? Please!! theadventurebite Plugins & Atahualpa 1 Jul 6, 2010 05:05 AM
[SOLVED] Author name and bio in only one parent category. ortixia Post-Kicker, -Byline & -Footer 4 Mar 8, 2010 02:00 PM
disable links in category menu for parent categories (only childless categories link) qcook2000 Page & Category Menu Bars 0 May 15, 2009 09:09 PM


All times are GMT -6. The time now is 08:00 PM.


Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.