Tagged: enfold
Dear,
I want to know where to find the common script of one single post, like H1, link, images, published date, etc.
I tried to go to the single.php for them, but it seems wrong.
Please give me a help.
Regards,
Rochelle
Hi Rochelle,
I’m not sure I understand what you mean by common script, could you try to explain a bit further what you are looking to achieve please?
Best regards,
Rikard
like these codes:
“title”: “<?php wp_title();?>“,
“pubDate”: “<?php the_time(‘Y-m-d’); ?>T<?php the_time(‘H:i:s’); ?>”
and how about the images codes?
Regards,
Rochelle
Hi Rochelle,
Inside single.php you’ll find this code:
get_template_part( 'includes/loop', 'index' );
that means that the content is inside includes > loop-index.php, try checking out includes folder and look for loop-index.php, you might see what you’re looking for there.
Hope this helps.
Best regards,
Nikko
HI, Nikko,
Thanks for your answer.
I can find the code in the single.php file.
But there is no loop.php or loop-index.php file in the wp-includes folder.
Could you check it again? By the way, I use enfold theme.
Or could you just let me know the code for images directly?
Best Regards,
Rochelle
Hi Rochelle,
Not in wp-includes folder, should be in wp-content > themes > enfold > includes > loop-index.php
There are lots of images, I’m not sure which one in particular that you are looking for.
Can you give us a link where we can see which image you’re referring?
Best regards,
Nikko