Aaron
Forum Replies Created
-
Forum: Plugins
In reply to: [WP SIMILE Timeline] Simile Timeline stopped displaying eventsHey did anything came up?
Forum: Plugins
In reply to: [WP SIMILE Timeline] Working on categories but not on custom taxonomiesOk after some trying, ive found out that i can change values through phpmyadmin (Directo to the database). But thats more or less a blindmans game. The values and ids doesnt mean anything so im shooting blanks
So what might have happened that it severed plugins connection to the db ?
Apparently you can re enter the slugs and the names of the taxonomies on other taxonomy categories and they will automaticly link. As in their ids will be same.
So question 2 is answered (though i wish there would be an easier way to do this rather than adding them again and again)
The Question 1 remains a mystery. Any help is apriciated
Thank you
Forum: Fixing WordPress
In reply to: 'posts_per_page' => 10 doesnt show 10 post?By this i mean i still receive 3 post while i should have got 10.
Thanks
Forum: Fixing WordPress
In reply to: 'posts_per_page' => 10 doesnt show 10 post?Alright thanks , ive stripped the needless parts now. This is what i got, how can i implement the limitation?
$loop = new WP_Query('category_name=actors');
Forum: Fixing WordPress
In reply to: Nooby "show content based on taxonomy choice" questionWell it worked.
Thank you very much
Forum: Fixing WordPress
In reply to: Nooby "show content based on taxonomy choice" questionIm sorry that i forgot to mention but i did see the missing bracket and closed it. But stil it didnt work.
Just to check that im not doing something wrong, im going to give out some details.
so my tax is registered in function.php like this
add_action( 'init', 'actors_register_taxonomies' ); function actors_register_taxonomies() { register_taxonomy( 'actors', array('cinema'), array( 'hierarchical' => true, 'label' => 'Actors Options', 'public' => true, ) ); }
And in Actors taxonomy there are Category A and Category B.
In the custom post (which is cinema as you can see) screen i choose every post either Category A or Category B.
So based on this, im filling the code as follows
<?php if(is_tax( 'actors', 'categorya') ) : ?> <?php include (TEMPLATEPATH . '/custompage1.php'); ?> <?php elseif(is_tax( 'actors', 'categoryb') ) : ?> <?php include (TEMPLATEPATH . '/custompage2.php'); ?> <?php endif; ?>
Now, based on this. Its not working. Ive tried if has_term yesterday and now after you mention. But it doesnt present results either.
Hope that helps.
Forum: Fixing WordPress
In reply to: Nooby "show content based on taxonomy choice" questionSorry its not working. Its completely blank.
By the way, this is outside the loop and in one of the single-custom.php s. Would that help?
Forum: Fixing WordPress
In reply to: get the term list with postcount based output.Hats off once again. Ive learned alot with your help. Thank you very much.
Forum: Fixing WordPress
In reply to: get the term list with postcount based output.Hey vtxyzzy
Its me again.
Well ive tried hard but still got a minor glitch that i couldnt fix.
<?php $id = get_the_ID(); $cat1 = get_the_term_list($id, 'uyeler', '', ', ', ''); $cat2 = get_the_term_list($id, 'kisiler', '', ', ', ''); // print_r("<p>ID:$id CAT1:" . htmlentities($cat1) . ' CAT2:' . htmlentities($cat2) . '</p>'); if ( $cat1 && $cat2 ) { // Plural code echo 'Authors '; echo $cat1; echo $cat2; } elseif ( $cat1 || $cat2 ) { // Singular code echo 'Author'; echo $cat1; echo $cat2; } ?>
So this code checks whether if both category 1 and category 2 are avaible to render the plural code. But if there are two “category1” or “category2” it still loads them as if they are singular.
Which kinda defeats the purpose of the code in the first place. Ive tried every possible if AND elseif > => == etc but still couldnt manage to fix it.
Another thing is, ive been searching on the internet for any referance that will condition the results based on numbers. But i cannot find any unless they are “showpost =’10’ kinda conditions.
It would sound nooby im sure but is it imposible to condition these results based on the number of taxonomies loaded? OR am i really using wrong search words for this type of conditioning?
Anyways i would apriciate any help given.
Thanks.
Forum: Fixing WordPress
In reply to: get the term list with postcount based output.One more small request. Can you change the names of the categories? Ill be deleting the bins anyway. Just to stay clear of the clients constant bugging if you know what i mean.
Forum: Fixing WordPress
In reply to: get the term list with postcount based output.Well bravo. Thank you. This been a long one i know but i apriated it alot.
Now i can work on itForum: Fixing WordPress
In reply to: get the term list with postcount based output.The results are same.
Its loading twice first with broken html then with proper one. (so its bypasing the plural or singular condition)
Forum: Fixing WordPress
In reply to: get the term list with postcount based output.Alright. Thanks again.
Forum: Fixing WordPress
In reply to: get the term list with postcount based output.Yea yea they are taxonomies. Infact here is the function.php code of them
My bad.