Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,195,238 members, 7,957,567 topics. Date: Tuesday, 24 September 2024 at 02:47 PM |
Nairaland Forum / Science/Technology / Webmasters / Wordpress Corner (1192 Views)
Wordpress Corner by toheebDOTcom(m): 7:16pm On May 11, 2016 |
This thread will be all about WordPress. From issues of creating Themes to using WordPress. Articles and Q&As. In another word, let's say it is a thread for WordPress developers and Users by WordPress Developers and Users . Two Rules guys. 1. STRICTLY WORDPRESS. If you seek knowledge, question or idea about only WordPress, State it; If I can't answer, another guru reading this will be able to. And if not, Google will help us all. 2. LITTLE JOKES. we all love that right? Our lives shouldn't be boring because we are coders. I will book down the next comment line to be an archive of links to solutions we have been able to solve or articles by Nairalanders outside Nairaland. Let's keep it rolling Guys, Mans, Madams, Grandmas, Grandpas, GGF, GGM, ... |
Re: Wordpress Corner by toheebDOTcom(m): 7:17pm On May 11, 2016 |
Re: Wordpress Corner by Mhizsonia(f): 7:42pm On May 11, 2016 |
Okay... Here we go! |
Re: Wordpress Corner by toheebDOTcom(m): 5:15pm On May 13, 2016 |
I thought i could be able to post something yesterday, but i was only sleeping and waking, and the circle continues till i get to Lagos. K k k k k k k, Lemme talk about WordPress Pagination till this battery went off! Lag light don worse WordPress Pagination As a WordPress Developer, you will definitely be creating template files. One of which is definitely for sure is index.php; there is also the single.php and as much others to page-archive.php. One thing is common to all of them, you need a means of creating pagination as your blog posts goes beyond the default 10 posts. How do you do that? What WordPress function do you need to use? When do you need to use such functions? [size=13pt]What WordPress function do you need to use?[/size] Option 1 If all you need to do is to create a link to the next page, then use this function 1. next_posts_link('Text to Display') :- Which links to a page with older posts. 2. previous_posts_link('Text to Display') :- Which links to a page with newer posts. Now, there is something i don't about the above functions. When you have less than 10 posts on any page you've implemented it, the links won't show up as usual which is frankly the normal; But heyyyy!!! the markup you used will be showing. if for example, you embed those functions in a p tag, your p tag will definitely display with no values (i.e empty) but it takes up some space in your canvas;behaving as if you've styled the p tag with visibility: hidden; Extra white-space could disfigure your Interface, you know And that brings me to the next super duper function which solves the above problem. And yes, this function might be all you need if you don't want the fancy tangy stuffs. Option 2 1. get_next_posts_link('Older Posts') :- 2. get_previous_posts_link('Newer posts') The additional power these two functions gives you is that they allow you to check if there are multiple pages before outputting the links. Hence, the problem of extra white-space is solved. But, Mr Man, i want some fancy pagination styles not just two links that takes me to two different pages. Well the functions i have described so far sucks at that. Yes including that super duper function. So, i bring you to the super duper fancer function Option 3 1. wp_link_pages($arguments) The Pagination function that displays page numbers giving your users the ability to link to page 3 without going through page 2. The fancer part of this function is that you can style it anyway you feel like. Yes! even like pages of a book Well that's possible, anything is possible, my personal blog looks like a house with those terms of a jagon like Fasia board, ridge and even windows. Na small gan remain i 4 get gate d@ u will need to unlock before you enter So guys, that's its. Are there any other ways you can create pagination in WordPress apart from the above? well lemme av you too to contribute, no be only me sabi am, i learn am too ni... [size=14pt]How do you use them?[/size] I haven't given any examples and that's because writing codes here on Nairaland will be a pain in the ass. I will talk extensively on this in my blog at a later date. To see how you can implement Option 1 and 2, then you can check this [url=toheeb.com/display-pagination-in-wordpress-only-if-there-is/]snippet[/url] i wrote some days ago. For the main time you can G gle it up!!! Lemme tag someone, she's a girl , she codes too! and she was the first to comment ... Tag: Mhizsonia 1 Like |
Re: Wordpress Corner by toheebDOTcom(m): 5:24pm On May 13, 2016 |
Lemme whisper something to you, battery almost down for just the above posts. God knows when there will be light. P E T R O L!!! |
Re: Wordpress Corner by Mhizsonia(f): 8:57pm On May 13, 2016 |
toheebDOTcom: Lol... Thank you sir... Need traffic for my blog though... Any useful tips are welcomed... |
Re: Wordpress Corner by SlimHan(f): 7:21am On May 14, 2016 |
Nice one op |
Re: Wordpress Corner by toheebDOTcom(m): 12:13pm On May 17, 2016 |
Mhizsonia:Check this out https://www.nairaland.com/3110594/3-major-ways-one-fundamental#45702020 |
Re: Wordpress Corner by toheebDOTcom(m): 12:13pm On May 17, 2016 |
SlimHan:Thanks miss |
Re: Wordpress Corner by Olaide1295: 2:04pm On May 18, 2016 |
Hi.... How can i increase the functionalities of my wordpress theme? Functions like integrating payment,Login page with privileges for different users,Upload and download files if my theme does not come with such functions |
Re: Wordpress Corner by toheebDOTcom(m): 2:15pm On May 19, 2016 |
Olaide1295:Plugins are the answers. However, if what you intend to achieve can be done with few lines of codes, then implement that in your functions.php file. Plugins like [url="https://wordpress.org/plugins/wordpress-simple-paypal-shopping-cart/"]WordPress Simple Paypal Shopping Cart[/url] [/quote] and [url="https://wordpress.org/plugins/sell-digital-downloads/"]Sell Digital Downloads[/url] allows you to upload the files via the standard media uploader. then you create a new product associated with these uploaded files. When a user pays t=you get notified and the download link is inboxed to the customer. WordPress gives you ability for 5 different User categories 1- Administrator :- Oga at the top patapata. Can do and Undo. Install Plugins, edit template files, change a LOT! 2- Editor:- Can only manage POSTS. update and edit and other stuffs pertaining to posts. 3- Author:- can publish and manage his/her own posts. 4- Contributor:- Can only manage his/her own posts. He will not be able to publish them! 5- Subscribers:- Can only manage their own profile. commenters for example [size=14pt]How to create a user[/size] WordPress Dashboard > Users > Add New Note: The Login Page for all users is still the same as the one that allows you into your Dashboard 1 Like |
Re: Wordpress Corner by toheebDOTcom(m): 2:48pm On May 19, 2016 |
free2ryhme: If i can get your question correctly, you want to change from ex. to something more like example.com or ex.com; right? If yes, Just follow this process 1. Export content from your current blog 2. Import content to your new blog 3. Add a site redirect to direct your visitors at old blog to new blog There are many imports and export plugins for wordpress. [url="https://wordpress.org/plugins/all-in-one-wp-migration/"] All in one WP Migration [/url] may be all you will need. You may as well search the wordpress directory for best plugins. I hope it helps |
Re: Wordpress Corner by emillionaire: 9:20am On May 20, 2016 |
what is all this |
Re: Wordpress Corner by toheebDOTcom(m): 11:41pm On May 20, 2016 |
emillionaire: some meaningful jagons to WordPress Developers |
Re: Wordpress Corner by jose556(m): 5:51pm On May 21, 2016 |
Hello wordpress gurus in the house. I recently designed an e-commerce website for a client. The thing is, he wants a flat of #500 shipping rate for orders below #5000 and a 10% on orders above #5000. I could set either for just #500 flat or just 10% on orders above #5000 but I can't set both together. Can anyone help with this shipping rate customization? |
Re: Wordpress Corner by toheebDOTcom(m): 7:01pm On May 21, 2016 |
jose556: If i may ask, why can't you set both together? My assumption right now is for you to make a conditional check on the value of the order, then integrate a #500 shipping rate for values less than #5000 and 10% else. IF / ELSE statement |
Re: Wordpress Corner by jose556(m): 1:28pm On May 22, 2016 |
toheebDOTcom:Thanks for the reply. How can I get to do that please? |
Re: Wordpress Corner by Adesege(m): 6:16pm On May 22, 2016 |
toheebDOTcom: For the love of SEO and ranking, domain redirect is not the best thing to do. It will depend on the headers you are sending too. |
Re: Wordpress Corner by toheebDOTcom(m): 8:25pm On May 22, 2016 |
Adesege:You are right if it is a 302 redirect or meta meta refresh. However, a 301 redirect is okay for the love of SEO and Ranking . Moz reported that it passes 90-99% of ranking power to the redirected page. 1 Like |
Re: Wordpress Corner by toheebDOTcom(m): 8:33pm On May 22, 2016 |
jose556: something like this should do the trick... if ( $order_value < 5000 ) { $with_shipping_value = 500 + $order_value ; } else { $charge = 0.1 * $order_value ; $with_shipping_value = $charge + $order_value; } you can always use the value $with_shipping_value henceforth!!! |
Re: Wordpress Corner by Olaide1295: 4:57pm On Jun 14, 2016 |
Hi Toheeb, I have a problem with my site ka shiva.com , i want to insert the background on this website(http://startit.select-themes.com/startup-business/#) on my own website. The background is the one with two men in suit, its not in jpg or png format so i cannot download it. i am using visual composer |
Re: Wordpress Corner by toheebDOTcom(m): 3:04pm On Jun 15, 2016 |
Olaide1295:I checked the link you gave, I couldn't see the picture you described |
(1) (Reply)
Best Dot Ng Host / Do You Need Someone To Manage Your Blog/website? Hire Me (whatsapp 09050703528) / Are You Looking For The Best Web Hosting
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 54 |