Site icon Hip-Hop Website Design and Development

Methods to Modify WP_Includes/blocks/latest_posts.php

I’m a newbie in WordPress Development needed to get some assist. Iam engaged on a easy WordPress web site. Principally the person needs the newest submit to indicate on the homepage. I’ve used the Newest Posts Block and I’ve set it to indicate all the Publish Content material and now the person doesn’t need the title of the submit to be linked to the person submit web page (for the reason that contents of the submit present on the homepage).

How do I safely modify the template file to make use of like a one thing like a h2 tag as a substitute of a href tag, which is used right here within the theme. I do know you’ll be able to create a baby theme and modify wp_content recordsdata, however I’m not positive how you can method this with recordsdata in wp_include. I learn one thing about modifying features.php however I’m not positive and would recognize any pointers.

$title = get_the_title($submit);
        if (!$title) {
            $title = __('(no title)');
        }
        $list_items_markup .= sprintf(

            '<a href="%1$s">%2$s</a>',
            $post_link,
            $title
        );