Previous Next article

Posted in: Newspaper
Post count: 6

HI:

I got 2 Question:

1.Could Previous/ Next article be displayed from same gategory?
2.I don’t need 「MORE FROM AUTHOR」

what can I do? (p.s I am a php engineer)

notice here↓↓↓↓
http://spock.nien.com/t900c/wp-content/uploads/2016/02/20160216.png

THANKS!!

Post count: 22421

Hi,
1) Unfortunately there is no option for this in the theme. It will have to be hard-coded. The code for the function can be found here: http://screencast.com/t/B8hav46Ql
2) In order to remove more from author you can use 2 methods:
The css method:
.td_block_related_posts .td-related-right {
display:none;
}

or you can edit the theme files: comment out or delete this part: http://screencast.com/t/Okmq7lxTDzGd

I hope this helps.
Thank you!

Post count: 6

I GOT IT

https://codex.wordpress.org/Function_Reference/get_next_post

get_next_post() is located in wp-includes/link-template.php.

All works!!

THANKS a lot!!

  • This reply was modified 10 years by spock.
Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘Newspaper’ is closed to new topics and replies.