aorchard
Member
Posted 1 year ago #
hi there
i know this should be simple, but i have spent the last 2 hours on it going through all docs and cannot find the answer. thus i am extending my grateful hand to the genius community here for help
"><?=$show[post_title];?>
this takes them to the blog title but fails to recognise the fact that i am using permalinks and thus it should be
category/title/
I have tried loads of things incl
/<?=$show[post_title];?>"><?=$show[post_title];?>
but nothing seems to work
massive kudos to anyone who can help
Andy
aorchard
Member
Posted 1 year ago #
wow ok trips the h-refs from the code
this is what i tried
<a href="<?=$show[category_title];?>/<?=$show[post_title];?>"><?=$show[post_title];?></a>
psykonevro
Member
Posted 1 year ago #
Maybe I don't understand what you need, but could be <?php the_permalink(); ?> what you're looking for?
aorchard
Member
Posted 1 year ago #
sorry this doesnt work
let me try and explain again
<a href="<?=$show[post_title];?>"><?=$show[post_title];?></a>
i want to show the blog title as the link tag and the actual url should be the link to the blog which takes into account the fact that the blog may be filed under a category. at the moment the link takes them only to the blog-name and not category/blog-name.
i assumed there would be an inbuilt post_url or category_title but there isnt.
any other ideas?
aorchard
Member
Posted 1 year ago #
sorry i should have said that this is outside of the blog - i am pulling the information onto my homepage which is in a separate folder to the blog.
i only have php code connecting the homepage to the blog database
anymore ideas?
thanks
andy
The idea always is: do not assume you know the technical how-to; you don't - otherwise you wouldn't be here.
So, forget the code that you assumed it would work and describe in plain English WHAT is your desired end result. What do you want to achieve?
Leave the HOW to the experts.
Experts? LOL good one moshu