最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

wp admin - I cannot get the "Read More" button to work!

matteradmin5PV0评论

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
Add a comment  | 

1 Answer 1

Reset to default 0

I'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.

Post a comment

comment list (0)

  1. No comments so far