2
I am learning PHP to change the company website, hosted on the server and already online. I have all the access, but I’m used only to HTML and CSS, and in the beginner’s researches and tutorials I studied, they teach the normal programming syntax (variables, loops, etc), but I did not find anything to explain where the texts and contents of the site in PHP arise. Below is a PHP code that returns the text to me:
We have a cd equipped with the best (...) stock and organization equipment.
And the code for that seems to be that:
<div id="content">
<?php wp_reset_query(); ?>
<?php
query_posts(
array(
'post_type' => 'logisticadinamica',
'orderby' => 'ID',
'posts_per_page' => 1
)
);
if (have_posts()) {
while (have_posts()) {
the_post();
?>
<?php the_content(); ?>
<?php
}
}
?>
I’m not asking you to teach me PHP because it would be absurd, I would just like to know where the generated text is.
This is wordpress right there.
– rray
Exactly, which only makes my beginner life worse:’D
– Madson Paulo
comes from wordpress, you can learn better here https://codex.wordpress.org/ this text is coming from the administrative area of the site try to access http://exemplo.com.br/wp-admin
– wwwjsw
Ah got it, logged in wordpress and found the texts there. So, for example, all the text below is only to add one of the menu tabs, in case you have any content, and if you have, I will find this content in wordpress and not in correct codes? <? php the_post_thumbnail('logisticaindex', array('title' => get_the_title())); ? > <H3>LOGISTICS</H3> <p> <?php abstract(20); ? > </p> <span><a href="<? php echo esc_url(home_url('/logistica/')); ? >">see more...</a></span> <?php
– Madson Paulo
I’m sorry, I don’t mean to criticize, but how does a company get someone to change the site without having the slightest knowledge of the language? Just a suggestion, do not touch the native wordpress codes, because if you do this you will probably have a lot of headache. I’m sure you’ll take the comment as a constructive criticism.
– Guilherme Nascimento