Ace1's Posts
Nairaland Forum › Ace1's Profile › Ace1's Posts
Good day fellow Nairalanders, I'm new to WordPress theme development and I'm having problems with my home.php template page. I want to show the title, excerpt and a thumbnail of the featured image of the about page, two posts (title, Thumbnail and excerpt) from a category named events, and thumbnail images of post from a category named gallery on the home page. I've tried using the code below but still not working. I've attached a screenshot of what I'm trying to achieve Thanks ********************CODE********************** <?php query_posts('cat=2', 'posts_per_page=2'); if(have_posts()) while(have_posts()):the_post(); ?> <div class="txt"> <div class="image"> <?php $test = catch_that_image(); if(empty($test)) { ?><img src="<?php echo get_stylesheet_directory_uri().'/images/default1.jpg'; ?>"/> <?php } else {?> <a href="<?php the_permalink() ?>" rel="bookmark"><img src="<?php echo get_stylesheet_directory_uri().'/lib/thumb.php'; ?>?src=<?php echo catch_that_image(); ?>&h=100&w=100&zc=1"/></a><?php } ?> </div> <p><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></p> <p> <?php the_content() ; ?> </p> <div class="clear"></div> </div> <?php endwhile; wp_reset_query(); ?> ********************CODE********************** |
tayoccu: Stop yapping like a re.tard, did the man o war creeps take the student to the vc before killing him? The mob took their victims to the traditional ruler to get his blessings.If u think I'm talking like a retard, dats ur opinion and still doesn't change anything. But get ur facts right. D ruler pronounced that they are guilty. He didn't ask dem 2 kill d boys. Dont just talk based on assuptiions |
Its funny how we feel so comfortable lying to ourselves. Most people here saying the whole of Aluu community is evil and should be wiped out will not waste time 2 call me a religious or tribal bigot if I say they're ritualist cos their name's chukwuemeka or boko haram cos their name's Abdulahi. We as Nigerians wanna hear d truth only if we're are comfortable with it. Sometime in 2010, an innocent student was beaten to death by Man o'war boys inside boys hostel. D school athourities came out 2 say dat the Man O'war boys weren't students. D only thing dat was done was Man O'war was stopped in uniport. D killers where not found and d case died a natural death. Guess dat makes every lecturer, and everybody who graduated 4rm uniport a killer? And to add, I'm not in support of the killing of dose boys and I also do not support people cursing the people of Aluu. B4 u start insinuating, I'm not from Aluu. I just decided not 2 allow sentiments cloud my reasoning. |
Abujafood: Blogs like Nairaland are money making tools because of their marketing potential! Who doesn't know marketing and money making go together!Deres a difference between a blog and an online forum, sir |
Billygene: wow!...this barbaric killing never happened during my University days in Nigeria.Never! and cannot.They're waiting for real men like u to lead them |
peckers: there is one thing i do tell myself that if Boko haram by any chance mistakenly blow one of my family, i promise to revenge becus i'm ready to use all my last kobo to find them and kill them as well, how i wish you heard the cursed lay on the community call aluu he won't have said he come from there because right now he has been cursed, if i have a son that become an arm robber i'm ready to disown him (i think that is an example for that )@oladoyin just let me see @martin first you will know if i will lynched or notI'm very sure if u where present when d killing where goin on, u would av replaced d guy wearing the sweatshirt and hitting dem wit wood. You are a lyncher buh u just don't know it yet. |
steffans: Dis is long over due..d Aluu community shuld be wiped Out....Thank you. Some of them even watched it happen. They av no point 2 proove. If they couldn't fight 2 save d lives of dose boys, den they shouldn't fight now and endanger the lives of innocent students |
From the stories I've read so far and from updates from students who r staying around dat Aluu area, dese boys are not thieves. A lot of people seem to be saying they're cultist. They're just using robbery to cover up for killing dese guys. I don't know any of them but its sad. If dese boys where indegenes of Aluu community, will dey be treated in dis same manner?
|
If I av 2 combine, den it has 2 b Egusi and Afang. |
xammy: WEMA BANK 035150103Thanks but I have a few questions. Is it one sort code for all branches? And, I opened d account when it was oceanic bank. Which sort code am I 2 use now, Oceanic or Ecobank? |
Please I need the sort code for Ecobank, Rumuokoro branch, Port Harcourt. Bank's closed already and I need to fill it on a form. Checked Ecobank's website cant find it dere. |
Fash The Gem: then wat is he?So every noise maker does hip hop now abi? Wats d similiarity between the songs on MI's illegal Music and dose on Davido's Album? Research n know wat hip hop rilly is |
afam4eva: How did someone like that find his way into music not to talk of hip-hop. He's looks like those kid that get taunted by bullies who'll call them all sort of names.DavidO doesn't do Hip Hop |
The collapsed bridge
|
DavidO is not a Hip Hop star |
Here's Music Militants Remix to Eldee's Song produced by Sarz titled Na wash. This is real comic relief. Enjoy! Na Lie - MUSIC MILITANTS REMIX - NOT TO BE SOLD http://www.4shared.com/mp3/5RT2_4q2/Na_Lie_-_MUSIC_MILITANTS_REMIX.html |
TCD: YES I listened to both songs and replayed them side by side. oh so now its no longer them "lifting verses" its now using "Timaya's Style"? Anyone who sings reaggae is copying bob marley, right? Or who sings RnB is copying R kelly. All RnB songs sound alike in some way and that's no crime. That's why they are grouped under the same genre of music. So if psquare decide to make a dance track from Timaya's genre how is that a crime? Most new songs I hear especially from upcoming artistes sound like that, everybody knows dance tracks like that are in demand. Inyanya's hit song kukere has the exact same beat wonder what you folks are crying about.Even Timaya got dat singing pattern from Frank D'Nero's song titled "Banger" buh he made his own sound diff a bit. P Square just lifted everything. If u avnt heard "Banger", I pasted the link on this thread. Listen and let's see if u'll still be defending P Square |
Couldn't help but laff real hard when I saw dis pic. If MTN is giving out an aeroplane, why can't etisalat give out a country?
|
P Square's Alingo wasn't copied from Timaya. It was copied from Frank D'Nero's song titled Banger. They know the song isn't that popular dats y they jacked it. If you doubt it, here's the link to banger. Even d production sounds alike.. Listen n b d judge: http:///d9sjt7vi97nk |
tpia@:He's making money for sure. Buh av u ever tried running even a blog with heavy traffic before? No be beans my brother. I guess you can tell facebook or twitter how they should run their site too ![]() tpia@:He's making money for sure. Buh av u ever tried running even a blog with heavy traffic before? No be beans my brother. I guess you can also tell facebook or twitter how they should run their site too |
onatisii: now u are talking better,you mods must realise that whatever u say can either make or mar the reputation of nl,if tempers boil over at certain times over an issue it is the responsibity of mods to keep things cool and under control,not by inflaming the situation by abuse or insults.I'm not a MOD ohhhhhhhh... I'm a NL user just like u buh I understand some of dese tins |
onatisii: you missed the whole point,no site is hack prof ,even nasa nd fbi and cia have had thier sites hacked so many times how much more nl.but look through the posts and comments of ppl criticaly u will notice that the major grouse of ppl is actually against these so called mods,a simple explanation or statement would have turned this matter into a laughing matter since yesterday,just tell everyone "we are looking at the problem and it wont repeat itself,pls try to protect ur email and other valuable information online but in the meantime continue to enjoy our wbsite"do u think after a statement like this ppl will stil continue to rain curses and abuses?and even if they do continue what stops the mods from just keeping quite and alowing tempers to cool down,definitely noone will stay on nl for 24hrs,ppl will eventually go to sleep,wouldnt that have been more mature,ethical and professional than exchnging insults ,curses and abuses with registered members?to the extent of one of them boasting that he will ban as many as 1000 members if they annoy him.like i said it is nobody business but when u think noone is noticing ppl that u will need in future are already taking notes of this incidents and accusations been thrown at the mods here.it belongs to seun he can sit and watch and allow matters to snowballI followed this topic from the first post till now. Seun already explained this in the first post. Trust me, some pple are just trying to make things look way bigger than what they really are. Some of the mods are arrogant, I agree buh if an american calls u a scammer n fraudster will u keep quiet? |
mrs_acidtalk: My Dear Husband (acidtalk) suggested something to make nairaland a better place and his post wasn't only hidden, he was aslso banned.Also remember dat Nairaland is a private owned entity and we no dey contribute server money 4 dem. We get worse from foreign companies doing business in Nigeria buh we do nothing about it. U can't tell notjustok.com what songs to post or how dey manage their blog. |
Decryptor: Seun will never add the deactivate account button because he "gets kicks" from seeing the number of registered NL users soar upward. He's currently waiting for when it will hit 1,000,000 members. Introducing the deactivation button will reverse that trend/ambition.If the deactivation button is introduced and a user deactivates his/her accounts, what will happen 2 informative and educative post made by these users. I for one av learnt a lot from Nairaland dats y I'm saying dis |
onatisii: so now one of the criteria required to become a moderator on nairaland is the ability to insult and abuse people.very very good. |
onatisii: so now one of the criteria required to become a moderator on nairaland is the ability to insult and abuse people.very very good.I'm not a moderator if u must know, just a regular NL user buh its people like u dat kill the main aim of dis site. If u don't understand something, ask questions instead of acting like u know everything. I agree some of the mods aren't doing their jobs buh is dat enuff reason to accuse them of selling emails? Even someone wrote that mods have access to users passwords. That's stupidity cos passwords are encrypted before they are saved in the database and Seun is not a today developer to take his site security lightly. |
Mr--Why:If u deactivate an account, what will happen to the educative posts from those accounts? |
tellwisdom: Hehehe!!--U too mumu...Thats just after extracting emails, as that is used for sending emails out and not for extracting them out from the database manOluku, u can't extract email addresses from NL database buh from its public pages |
tellwisdom: Dude, either one out of you sold out emails secretly to business owners/marketers etc or a cyber punk is test driving his work with your site!Try run a google search on email extractor. If u can read and understand, dats supposed 2 shut u up |
onatisii: justwise ,u claim i dropped my email ok ccepted,why didnt i get the spam mail ppl are complaining about if it ws only those emails mde public that were trgeted?hNow dats a dumb question. |
Seun: Your email address is never exposed on NL2. Moderators and super-moderators can't get your email address.No matter how much u try to explain, they will neva understand because they don't listen, instead they'll be claiming they know more u than u even do. You've done well by informing people about this |
pdudy: Just tell us your site was hacked. No biggie. You won't be the first and you won't be the last. Too much tori.I take it dat ur internet knowledge is below average. Its funny how everybody sees everything as hacking. If u know wat an email extractor is u wouldn't av made dis comment |
Wats d similiarity between the songs on MI's illegal Music and dose on Davido's Album? Research n know wat hip hop rilly is