• I’m fairly new to WordPress.

    To get started, I modified the files that came in the default template.

    Everything looks good, but I’m a little confused.

    I can’t figure out how to navigate to links.php and image.php which were in the default template. I looked through theme.php and template-loaded.php in the wp-includes directory and can’t figure out how these two files are being used.

    After going through my whole blog, I can never find a way to get to those two pages. I modified them, but can’t test them.

    Does anyone know how to navigate to the default template links.php and image.php files?

    Finally, comments-popup.php in the default template. In archive.php in the default templage there is a file archive.php which uses the function comments_popup_link. I would think that would open up the comment_popup.php file, but instead it opens comment.php.

    I could have sworn I saw comments-popup.php open once, but I’m not seeing it anymore.

    Does anyone know how to get comments-popup.php?

    I don’t need these files, the blog works fine as is. My concern is that somehow a user will figure out how to navigate to links.php, image.php or comments-popup.php and I haven’t tested them out yet.

    Thanks,

    Michele

Viewing 6 replies - 1 through 6 (of 6 total)
  • links.php is a page template. Use it when you want to publish a page that displays all of the links you currently have within the Link Manager.

    image.php can be used by WordPress to display larger versions of images.

    Don’t worry about theme.php or template-loaded.php. They’re part of the WP core and contain scripts that will be used automatically when required.

    Confine your editing to files within the wp-content/themes directory. Otherwise, WordPress will stop working at some point and you’ll be forced to re-install a fresh copy.

    With regard to comments, you might want to read up on:

    https://codex.www.ads-software.com/Template_Tags/comments_popup_link
    https://codex.www.ads-software.com/Template_Tags/comments_popup_script

    If you concerned about security, have a look at:

    https://codex.www.ads-software.com/Hardening_WordPress

    Thread Starter mmwaldman

    (@mmwaldman)

    But I don’t know how to navigate to the links.php or the image.php.

    I added links to the linkManager. How to I get to see that page?

    How do I get to see the image.php page? I added an image to a post, but didn’t see any way to make it bigger.

    Do you know how to create a url to those pages?

    I can’t figure out how to navigate to those two pages to test them out.

    Thanks.

    But I don’t know how to navigate to the links.php or the image.php

    You don’t need to. Both of these files are templates – not pages. If you want to publish a Links page, just create a new page as per usual but select the Links template from the Page Template dropdown. WP will do the rest.

    How do I get to see the image.php page? I added an image to a post, but didn’t see any way to make it bigger.

    When you insert an image into a page or post, you are given the option to link to either a File URL or the Post URL. If you choose the latter, the image in your page or post will then become a link to this generated page. If that link is clicked on, WP will use the image.php template file to automatically generate a page for the image.

    Thread Starter mmwaldman

    (@mmwaldman)

    I went to write link to create a link and added to my side bar:
    <?php wp_list_bookmarks(‘title_after=&title_before=’); ?>

    The links are showing up.

    When I add an img to a post in TinyMCE, it does not give me the option of chosing a post. I am using Multi-user. I don’t see anywhere else to add an image to a post.

    Thread Starter mmwaldman

    (@mmwaldman)

    Correction: The links are NOT showing up.

    Thread Starter mmwaldman

    (@mmwaldman)

    I can list the bookmarks now.

    But it just opens up a new page.

    I never hit the links.php page in the theme.

    Does anyone know how to get to the links.php or image.php pages in the theme?

    For instance, I’m using author links. so https://domain/blog-it/blog/test/ gets me to the blog of the author test.

    What link would get me to a link or an image?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Navigating the Default template’ is closed to new replies.