Answer the question
In order to leave comments, you need to log in
How to change the titles and texts of the layout planted on Wordpress?
Hello.
According to the lesson, I put the layout on the CMS, instead of headings (h1-h4) it stands: <?php the_title(); ?>
Instead of paragraphs: <?php the_post(); ?> <?php the_content(); ?>
Having entered the admin panel, I did not understand how to change specifically a separate heading that is tied to a specific h or p tag.
Adding new entries with titles doesn't help. Apparently all <?php the_title(); ?>
are attached to the same record. Tell me, please, how do I get a separate text in a separate tag through the Wordpress admin panel (without editing the html markup in the internal editor), and if you set the "left" php function to display the text title, tell me which function should be inserted? (The wordpress documentation will not give me anything specifically). As far as I understand, I need to create a bunch of posts and attach each to the desired tag? How can you hook up? Thank you!
Video tutorial I used: https://www.youtube.com/watch?v=7akPICFR-AI
Answer the question
In order to leave comments, you need to log in
Ask specific and correct questions and then you will get answers.
That you documentation though open that!! the_title()
Displays the title of the current entry in the loop. HTML headers have nothing to do with it. You can wrap the function in a header or pass header tags as arguments to this function.
Instead of paragraphs: <?php the_post(); ?> <?php the_content(); ?>What does it mean instead of paragraphs? Go to documentation. Using
the_post()
OUTSIDE of the WP loop doesn't make any sense. the_content()
outputs the contents of the current entry in a loop. And what about paragraphs? Bad layout, in theory, all texts should be manageable
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question