D
Deleted member 708208
Guest
Hey guys,
So I have been pulling my hair out recently trying to do something with WordPress that out of the
box its not suppose to be able to do. Let me explain what I want below and maybe there's a solution?
I have a static homepage with content and I want to be able to add snippets of my blog articles below it.
Also if possible I want to be able to have multiple blogs on one website. Can't seem to get my head
around it for some reason.
Next I wanted it to where I could say have 10 articles on the homepage but have only snippets with
read more where they click it and it reveals the whole article. Well the "More" tab does not work for
pages and only blogs. I researched the hell out of it and came up with this:
So I added it to my page.php file under my theme. Then I used the "more" tab and yeah it shows "read more" now
and cuts off the content, but when I click "read more" it just refreshes the page and that's all. So I added this below
like it told me to my php file:
And that's when the "read more" did display on pages but like I said it just refreshes the page.
If I add this string to the file as well:
Then it literally doubles my content on the page. I have tried everything and I am php and code illiterate.
If anyone can point out my mistake or have another solution for "read more" tags on WordPress pages
then I would be thankful if you could lend a hand.
Thanks!
-RK
So I have been pulling my hair out recently trying to do something with WordPress that out of the
box its not suppose to be able to do. Let me explain what I want below and maybe there's a solution?
I have a static homepage with content and I want to be able to add snippets of my blog articles below it.
Also if possible I want to be able to have multiple blogs on one website. Can't seem to get my head
around it for some reason.
Next I wanted it to where I could say have 10 articles on the homepage but have only snippets with
read more where they click it and it reveals the whole article. Well the "More" tab does not work for
pages and only blogs. I researched the hell out of it and came up with this:
So I added it to my page.php file under my theme. Then I used the "more" tab and yeah it shows "read more" now
and cuts off the content, but when I click "read more" it just refreshes the page and that's all. So I added this below
like it told me to my php file:
Code:
<?php
global $more;
$more = 0;
?>
And that's when the "read more" did display on pages but like I said it just refreshes the page.
If I add this string to the file as well:
<?php the_content('Continue Reading'); ?>
Then it literally doubles my content on the page. I have tried everything and I am php and code illiterate.
If anyone can point out my mistake or have another solution for "read more" tags on WordPress pages
then I would be thankful if you could lend a hand.
Thanks!
-RK