nfa1218
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: help integrating many categories.php into one single .php filehi, the number that changes in the “child_of=23” part of the code is the ID number for the category that i want. that is the only part of the code that i’m changing in each of my category loops…
i have one category which hold all my blog entries… which will have one type of css style… and 20 different categories for different types of services which will have a different css style and also each one of those will have different color indicating the service…
hope that helps!
Forum: Fixing WordPress
In reply to: category page results by groupok, after a day of non-stop searching, i found a great solution for this little/big problem:
https://iamnotagoodartist.com/how-to/wordpress-how-to-sort-category-archive-posts-by-subcategory/
i haven’t finished testing it throughly but so far it’s been exactly what i needed.
i’ll leave this as resolved and hope it helps someone else out.
Forum: Fixing WordPress
In reply to: how can i adding a css class to my get_category_link href ?you, my friend, have been of great help. thank you very much ?? topic resolved.
Forum: Fixing WordPress
In reply to: how can i adding a css class to my get_category_link href ?thank you. i can’t seem to edit the original post so i will add the code again properly:
<div> <?php foreach((get_the_category()) as $childcat) { if (cat_is_ancestor_of(4868, $childcat)) { echo '<a class="???????????" href="'.get_category_link($childcat->cat_ID).'">'; echo $childcat->cat_name . '</a>'; echo ' '; }} ?> </div>
Forum: Fixing WordPress
In reply to: how can i adding a css class to my get_category_link href ?ok it’s been edited. what do you mean by broken/corrupeted? are you saying the code i’m using is useless?
thanks, but the problem seemed to be that my server was out of memorie. prob. solved.