paulwordpress
Forum Replies Created
-
Forum: Plugins
In reply to: List user-specific commentsis this possible??
Forum: Fixing WordPress
In reply to: not category_parent but category_grandparentnevermind, i got it!
foreach((get_the_category()) as $cat){
$cat_country_ID = $cat->category_parent;
$cat_country = get_category($cat_country_ID);
if ($cat_country->category_parent == 7){
echo $cat->cat_name.’, ‘.$cat_country->cat_name;
}
}gee, i’m smart ??
Forum: Fixing WordPress
In reply to: the_title character limitnever mind i got it.
<?php $thetitle = $post->post_title; echo substr($thetitle, 0, 26); ?>
Forum: Fixing WordPress
In reply to: the number of posts in a categoryyes!
$cat->category_count works in 2.0.4print_r($cat) is also a very handy trick
thanksForum: Plugins
In reply to: echo “the title” without “the Loop”awesome thanks, i’ll give it a whirl
Forum: Plugins
In reply to: echo “the title” without “the Loop”oh, those links are exactly what i need.
what is the code for that?
because i am having trouble transferring the id from the url to the page.
i just want the really simple version. as long as the id in the url brings that title in, i would be over the moon.
thank you!
Forum: Plugins
In reply to: echo “the title” without “the Loop”yeah, just any ol’ page, thanks. 33 is just an example, i want the url to dictate the ID to bring in the title.
so it could be 33, it could be 56, it could be 12, it could be 101. whatever number is in the url i want that post’s title in the page.
————————————-
it’s for a blog with a bunch of ajax – i’m trying to avoid details because that will just confuse everything
————————————-
thanks a bunch whooami. have a nice rest ??Forum: Plugins
In reply to: echo “the title” without “the Loop”i think the latter.
i just want to make a new page which i can refer to,
let’s call it my_new_page.php for examplei just want to be able to type
https://www.mysite.com/my_new_page.php?id=33and then the title of post #33 to appear.
and if i type
https://www.mysite.com/my_new_page.php?id=56i would like the title of post #56 to appear.
thanks in advance whooami
Forum: Plugins
In reply to: echo “the title” without “the Loop”html tags are different php tags… i shouldn’t need html tags to load the title.
ignoring that, how would i create a new php file and which only has the title on it?