adding custom news boxes and Post Types in Wordpress - wordpress-theming

I want to add custom News Box In WordPress like this website .
I mean that I need a special box for each category, so it displays the latest posts in this category .
So how can I make this box import the posts from special category ??
Thanks in advance ..

I'm the webmsater of http://www.stickytuts.com Sticky TUTS is a blogger hosted blog, but for wordpress there's a lot of plugins to do that here's some of them
wordpress.org/plugins/tags/news-bar
wordpress.org/plugins/news-bar
And here's a blog post that you can find in what you are looking for:
www.wpbeginner.com/plugins/how-to-add-a-news-ticker-in-wordpress

Related

WordPress doesn't show posts' details

Just deloyed a WordPress site on internet, using apache2.4+ PHP7+phpmyadmin+MySQL5+newestWordPress.The homepage can be visited as xxx.xx.xx.xx by explorer.
But there are 2 problems)
1.It doesn't show posts' details like imgs .
2.Only main page is available.Clicking a post title will cause (request is denied).
Problems show on visitors'end, things look going fine for WordPress admin.
Hope some friends here could help to diagnose...Thanks!
It's a staging server, looks like that.

How can i limit my blogs per page on my website?

i want to have around 5 blogs per page but i cannot do that because if i add a new blog i have to then manually edit all files again to make the 1st blog second , the 2nd blog third etc.
How can i automate that so that when i add a new blog it automatically adjust and adds the 5th blog on the page to page2.html of my website?
i did a research online but i cannot seem to find any solution for that , i heard it can be done with PHP but cant really figure out how
use this jquery for pagination
http://flaviusmatis.github.io/simplePagination.js/
pls edit your selector in jquery code.
selector means your blogs class or Id
if your blog have class ".classname"
if your blog have id "#id"
Note:firt add jquery.min.js
i hope this one is helping u

How do I display authors on Wordpress Blog Posts?

I have a custom theme running Wordpress 4.6.1. I have a separated subdomain for my blog on the site, http://example.com/blog. None of my blog posts are showing the author.
I have tried installing various different plugins, but there seems to be a coding issue with the theme that does not automatically display the author's name on each post. My posts show the date and title, but no author name. What code do I need to utilize to display the author name?
I think you will need to add
<?php the_author(); ?>
to your template file.
Reference the WordPress codex for guidance - https://codex.wordpress.org/Function_Reference/the_author
Hope this helps!

Display Tumblr Demo Posts as Sample Posts?

I wondered if there is a way to use the posts that I've put in my Demo Tumblr Theme as the 'Sample Posts' in Tumblr for when someone downloads and installs the theme?
I know that when you install a theme and go to customise it, there is an option to use your 'own posts' or 'sample posts' and I'd like to be able to set it up so that the posts I've used in my Demo for the theme, display instead of the standard ones provided by Tumblr.
Does anyone know if this is possible and/or any tutorials/suggestions on how to go about doing it?
Any help would be appreciated.

wordpress widgetlogic conditional logic is not working for post page

I am just developing a theme under wordpress twentyeleven theme. In that theme I have installed widget logic plugin to show different widgets on different pages. But when I want to show some widgets in post page and made conditional tags for widget logic the widgets are not showing in post page.
I have tried some thing conditional tags like this
is_page('Blog')
is_page('246') // As 246 is the page id of my post page.
I tried all of them but still its not showing.
I had also tried wp_reset_query(); in my functions.php file. But no luck there was.
Update
To make blog page as my post page I have made changes in wordpress settings >> Reading >> A static page >> Post page -> Blog
So can someone kindly help me to solve this? I have already spent a day to solve this. Any help and suggestions will be highly appreciable.
Just try this in your widget conditional
is_home(Blog)
Here is the link http://wordpress.org/extend/plugins/widget-logic/other_notes/
Just check there is_home() -- just the main blog page
try is_page(246) without quotes.