Which Wordpress template does the posts page use as standard? - wordpress

I'm just wondering which page template the standard blog posts use.
I am using the Roots.io theme and I don't have blog posts on the home page, I have them on a page called 'news' - I just wondered which template file this will use, or what I will need to create, as I can't seem to find which template it is using, so I can modify it. I have checked the hierarchy. they are not custom post types.

If you have a peek inside of the templates directory you will see the list of included templates for the roots theme. For styling pages and posts use the content-*.php files.

Related

WP: Can I use Template Hierarchy page and templates together or am I talking about same thing?

I'm trying to create WP site with different templates with different functionality but in same web page with same header and footer.
So my question is, Is Page Hierarchy (page-about.php) different than Template Hierarchy?
If its different thing, can i use both of them in same page?
Ex: templates/about.php + pages/about.php = about page with about template etc...
The template hierarchy boils down to how WordPress decides which template to load when a URL is requested (when you type a URL in your browser address bar). In your question above, you mention page-about.php - this is one of the many templates you might have in your theme folder. When someone requests the page example.com/about on your website, WordPress will load the page-about.php template because it is the best match according to the rules in template hierarchy.
For info on exactly how the template hierarchy 'matches' URLs to templates, see:
https://codex.wordpress.org/Template_Hierarchy

What is the URL to execute taxonomy-$taxonomy.php Template

I have a WordPress Website www.bccfalna.com and I have created some Custom Taxonomy. Everything is working well when I use following URLs in my web browser:
domain.tld/Texonomy/Term/
which is equal to :
taxonomy-{taxonomy}-{term}.php
Format specified at WordPress Documentation. But I am very confused about What URL I use in my Web Browser, so that I can use following URL specified at WordPress Documentation:
taxonomy-$taxonomy.php
I mean, I have created a Template taxonomy-$taxonomy.php, But I don't know about What URL I use in my web browser, so that WordPress can run taxonomy-$taxonomy.php Template and I could see the Output.
If you want the taxonomy-{taxonomy}.php template applied to term archives, do not create individual taxonomy-{taxonomy}-{term}.php files. From the Codex, this is the hierarchy:
taxonomy-{taxonomy}-{term}.php
taxonomy-{taxonomy}.php
taxonomy.php
archive.php
index.php
Note: in WP, 'general' taxonomy archives (i.e. an archive page showing all posts using terms belonging to a certain taxonomy) are not available out of the box, compare example.com/tag/ or example.com/category/.
PS: You can use this plugin during development to reveal templates being used.

Displaying full details of blog posts on the homepage of a wordpress theme that does not allow it by default

I am new to Wordpress. I got this template that I want to use for my site. The template link is here. By default this template allows you to put all sorts of plugins on the homepage. Problem is I don't really want to style my blog the way the template comes. What I just want is to have the full details of my blog posts showing on the homepage and then the categories by the side. Does any know of any plugin that I can use to display blog posts full details instead of just lists (with or without thumbnails)
Your homepage should use the file index.php from the theme (located in wp-content/themes/name_of_your_theme). Open it and search for the_excerpt. It should be located in the Loop, as many things related to Posts in Wordpress.
If what you want to display in the homepage is the same thing than when a single post is displayed, then open single.php in the same directory. That's the theme file used when displaying a single post. Search for the_content inside the Loop and see how it's done. You want to do the same in index.php, more or less copypasting or replacing carefully the_excerpt by the_content. Well, it'll be a little harder than that (you've to understand what you remove, replace or copy) but that's the idea.
Relevant documentation in Codex: the_excerpt (esp. the 2nd paragraph) and Template Hierarchy (answers the questions related to which file is called for Homepage, single post, a category, a page, etc)

Is it standard practice for plugins to add pages to wordpress using templates or shortcodes?

I want my plugin to add new pages to the website and I wanted to know which is the best way for doing that. I've seen plugins which add their pages using shortcodes and other plugins which include their own page templates.
I was wondering which is the better way of adding public pages (NOT AN ADMIN PAGE) to Wordpress?
both ways you described are valid . you can do both (by the way, shortcodes are just a different way to INCLUDE the template inside a post or page)
you did not specified what this template should do - but What I would do is include the template needed in the plugin folder structure, and then call it when needed , with $plugin_directory = plugin_basename(__FILE__);

Wordpress Not Publishing Posts To Custom Template

I am building a theme that has a lot of custom templates, like every page. Ridiculous, but for some reason the template I made for the "postings" page is not getting the posts? I have set the post page in reading preferences, and I have set the page to use my template, but it still publishes posts to a default template. Of all the customization I built into this I did not expect the blog part to give me trouble! lol Anyone run into this kind of thing?
Thank you.
The way I usually to it is to have standard setting in reading preferences.
Build my front-page in index.php
Build a template for blog posts
Add a page and assign the blog post template
Of course you then have a kind of placeholder page sitting amongst the other pages, don't really like that. But it works.

Resources