admin管理员组文章数量:1026989
First, some background...I am just starting with Wordpress, and am working on switching the website for my church (www.bvchurch) over to Wordpress (temporarily at www.bvchurch/wordpress). We have a blog page which the pastor uses to post periodic updates. He sends them to me, and I've been posting them. Not sure this matters, but when I post them, I go into the wp-admin site, I "Add New" post, and paste the content into the page, which ends up taking multiple blocks. Anyway, the blog page contains 4 blog entries, which each have a "Read More" button. I click the button, and it takes me to a separate page with just that entry, but it never expands the blog entry! (see below)
I've looked around online, but a lot of the discussions mention editing the php files or similar modifications. Unfortunately, I can't find anyway to modify the page, or even change in to the code view (see attached image)
First, some background...I am just starting with Wordpress, and am working on switching the website for my church (www.bvchurch) over to Wordpress (temporarily at www.bvchurch/wordpress). We have a blog page which the pastor uses to post periodic updates. He sends them to me, and I've been posting them. Not sure this matters, but when I post them, I go into the wp-admin site, I "Add New" post, and paste the content into the page, which ends up taking multiple blocks. Anyway, the blog page contains 4 blog entries, which each have a "Read More" button. I click the button, and it takes me to a separate page with just that entry, but it never expands the blog entry! (see below)
I've looked around online, but a lot of the discussions mention editing the php files or similar modifications. Unfortunately, I can't find anyway to modify the page, or even change in to the code view (see attached image)
Share Improve this question asked Mar 26, 2019 at 1:34 Paul DieterichPaul Dieterich 1 4- Hi Paul! It would be helpful to shorten up the preamble and extraneous details. Instead, it would help to provide some code references. The details you provide above aren't enough to debug the issue, I'm afraid. – MikeNGarrett Commented Mar 26, 2019 at 1:40
- 1 Sorry, I do tend to ramble, but the reason I provided the details I did (and not code) is precisely BECAUSE I couldn't view the code. Right above the second picture I posted, I mentioned that I was having trouble finding the area to view/modify the code for the blog page. – Paul Dieterich Commented Mar 26, 2019 at 2:52
- Gotcha. This is WordPress or something similar? If so, you cannot edit the codebase at all. – MikeNGarrett Commented Mar 26, 2019 at 2:56
- Nah, I'm using the Wordpress functionality on GoDaddy (our current webhost). I'm still poking around, but it is maddening trying to find out how to modify certain things. Anyway, with that said, I think I've found what I need (had to go to Appearance --> Theme Editor), but it has literally been 20 years since I've done anything significant with PHP, so it should be interesting... – Paul Dieterich Commented Mar 26, 2019 at 3:04
1 Answer
Reset to default 0I'm not sure what you mean by "code view", but the actual theme code is found under Settings > Theme Editor. I would not recommend using that if you are not an experienced coder.
The single post should open in the single.php or singular.php file, where the content file corresponding to the post type is pulled in from the template-parts directory. The content.php file will be used by default for regular posts. It should have a conditional statement to determine whether to use the_excerpt or the_content.
if( is_singular() ) {
the_content();
} else {
the_excerpt();
}
I am currently working on several themes for churches for use with my own Church Options plugin, feel free to contact me if you have any questions.
First, some background...I am just starting with Wordpress, and am working on switching the website for my church (www.bvchurch) over to Wordpress (temporarily at www.bvchurch/wordpress). We have a blog page which the pastor uses to post periodic updates. He sends them to me, and I've been posting them. Not sure this matters, but when I post them, I go into the wp-admin site, I "Add New" post, and paste the content into the page, which ends up taking multiple blocks. Anyway, the blog page contains 4 blog entries, which each have a "Read More" button. I click the button, and it takes me to a separate page with just that entry, but it never expands the blog entry! (see below)
I've looked around online, but a lot of the discussions mention editing the php files or similar modifications. Unfortunately, I can't find anyway to modify the page, or even change in to the code view (see attached image)
First, some background...I am just starting with Wordpress, and am working on switching the website for my church (www.bvchurch) over to Wordpress (temporarily at www.bvchurch/wordpress). We have a blog page which the pastor uses to post periodic updates. He sends them to me, and I've been posting them. Not sure this matters, but when I post them, I go into the wp-admin site, I "Add New" post, and paste the content into the page, which ends up taking multiple blocks. Anyway, the blog page contains 4 blog entries, which each have a "Read More" button. I click the button, and it takes me to a separate page with just that entry, but it never expands the blog entry! (see below)
I've looked around online, but a lot of the discussions mention editing the php files or similar modifications. Unfortunately, I can't find anyway to modify the page, or even change in to the code view (see attached image)
Share Improve this question asked Mar 26, 2019 at 1:34 Paul DieterichPaul Dieterich 1 4- Hi Paul! It would be helpful to shorten up the preamble and extraneous details. Instead, it would help to provide some code references. The details you provide above aren't enough to debug the issue, I'm afraid. – MikeNGarrett Commented Mar 26, 2019 at 1:40
- 1 Sorry, I do tend to ramble, but the reason I provided the details I did (and not code) is precisely BECAUSE I couldn't view the code. Right above the second picture I posted, I mentioned that I was having trouble finding the area to view/modify the code for the blog page. – Paul Dieterich Commented Mar 26, 2019 at 2:52
- Gotcha. This is WordPress or something similar? If so, you cannot edit the codebase at all. – MikeNGarrett Commented Mar 26, 2019 at 2:56
- Nah, I'm using the Wordpress functionality on GoDaddy (our current webhost). I'm still poking around, but it is maddening trying to find out how to modify certain things. Anyway, with that said, I think I've found what I need (had to go to Appearance --> Theme Editor), but it has literally been 20 years since I've done anything significant with PHP, so it should be interesting... – Paul Dieterich Commented Mar 26, 2019 at 3:04
1 Answer
Reset to default 0I'm not sure what you mean by "code view", but the actual theme code is found under Settings > Theme Editor. I would not recommend using that if you are not an experienced coder.
The single post should open in the single.php or singular.php file, where the content file corresponding to the post type is pulled in from the template-parts directory. The content.php file will be used by default for regular posts. It should have a conditional statement to determine whether to use the_excerpt or the_content.
if( is_singular() ) {
the_content();
} else {
the_excerpt();
}
I am currently working on several themes for churches for use with my own Church Options plugin, feel free to contact me if you have any questions.
本文标签: wp adminI cannot get the quotRead Morequot button to work
版权声明:本文标题:wp admin - I cannot get the "Read More" button to work! 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745658902a2161768.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论