![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Industry Role:
Join Date: Mar 2004
Location: Great White North
Posts: 5,794
|
Wordpress puzzle. (advanced code problem)
Allright, I've been tweakin and playing with a theme and have done some extensive 'categorizing' to lay out this site. But just cant get the main page to display its categories and childs properly (non conventionally btw)
It has Parent Categories for A through Z. http://www.classic-porn.ca/list/j/ <-- category Stars are childs of the first letter of their name, IE, Joanna Storm is a child category of "J ". http://www.classic-porn.ca/list/j/joanna-storm/ <-- child category of J Now here is the issue, this code here displays the categories (as picked in the config to display on main index), if you look at www.classic-porn.ca , you can see that the Categories (A -Z) are listed, and the movies are posted, BUT it is showing the wrong child category. IE Bunny Bleu shows up in her parent Category (properly) but she also shows up in 'G' and in 'R' (because that movie is also posted in those other categories (its pulling them alphabetically I suppose but I need it to pull the proper child category that fits under that Parent. PHP Code:
Thanks a bunch, im fucking baffled at this point.
__________________
LinkSpun - Premier Adult Link Trading Community - ICQ - 464/\281/\250 Be Seen By New Webmasters/Affiliates * Target out webmasters/affiliates based on niches your sites are for less than $20 a month. AmeriNOC - Proudly hosted @ AmeriNOC! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Industry Role:
Join Date: Mar 2004
Location: Great White North
Posts: 5,794
|
Code:
<?php $category = get_the_category(); echo $category[0]->cat_name; ?> get_parent and all that type shit I cant seem to make it spin.
__________________
LinkSpun - Premier Adult Link Trading Community - ICQ - 464/\281/\250 Be Seen By New Webmasters/Affiliates * Target out webmasters/affiliates based on niches your sites are for less than $20 a month. AmeriNOC - Proudly hosted @ AmeriNOC! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Industry Role:
Join Date: Mar 2004
Location: Great White North
Posts: 5,794
|
bump and thanks in advance if someone is actually looking for the answer (i've tried a few things over the last few days)
__________________
LinkSpun - Premier Adult Link Trading Community - ICQ - 464/\281/\250 Be Seen By New Webmasters/Affiliates * Target out webmasters/affiliates based on niches your sites are for less than $20 a month. AmeriNOC - Proudly hosted @ AmeriNOC! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Industry Role:
Join Date: Mar 2004
Location: Great White North
Posts: 5,794
|
Bump again, if someone knows someone 'talented' in wordpress toss them this thread, if no-one can offer the fix for free, i'll gladly toss some paypal at someone to fix it.
Line or two of code, just cant pull the child from its parent.
__________________
LinkSpun - Premier Adult Link Trading Community - ICQ - 464/\281/\250 Be Seen By New Webmasters/Affiliates * Target out webmasters/affiliates based on niches your sites are for less than $20 a month. AmeriNOC - Proudly hosted @ AmeriNOC! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Industry Role:
Join Date: Mar 2004
Location: Great White North
Posts: 5,794
|
Badass.
Thanks Sands for the help and quick proper fix. You rock.
__________________
LinkSpun - Premier Adult Link Trading Community - ICQ - 464/\281/\250 Be Seen By New Webmasters/Affiliates * Target out webmasters/affiliates based on niches your sites are for less than $20 a month. AmeriNOC - Proudly hosted @ AmeriNOC! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Join Date: Feb 2007
Location: 418194907
Posts: 3,134
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |