Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1039756

    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

    #1039880

    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

    #1040090

    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

    #1040185

    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

    #1040204

    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

    #1040218

    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

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.