Stupied WP question...

enderz

New member
Jan 13, 2009
727
2
0
Where is this php page:
mydomain.com/?tag=some-tag

I want to change some code there...
 


There are theme files. Each theme file does specific things. If you want to make your tag pages look different, create a tag.php theme file, and go crazy.
 
hmm...

There are theme files. Each theme file does specific things. If you want to make your tag pages look different, create a tag.php theme file, and go crazy.

Thanks David,

But, which page is shown when there is no tag.php file? Cause I don't want to start building it from scratch (all I need is to put there some extra text), it is so simple with single.php and index.php, but from where the fuck wp is showing the tag page when tag.php doesn't exists???
 
Thanks but it didn't help me, what did I miss??

Read the article again, you see in the article there is a reference made to WordPress template hierarchy?

It means that the URL you've posted in your first post uses one of these templates in your theme's folder.

One of these templates is what is being used to show your tag pages, if you want to change the code to alter the appearance or functionality somehow for your tag page I would suggest to copy over the contents of archive.php or index.php to a new page file you'll have to create that you name either tag-slug.php or tag.php.

Then make the necessary changes you want to make in that new file.

If you already have a tag-slug.php or tag.php page in your theme's folder you don't have to copy anything, just work from that file directly.
 
Basically wordpress looks for specific files and loads them, otherwise goes broader if it can't find a specific file.

For example a page might try page-pageslug.php first, then page.php, then single.php then index.php if it couldn't find any of those. WP uses what you'd call a dynamic loading structure.
 
Basically wordpress looks for specific files and loads them, otherwise goes broader if it can't find a specific file.

For example a page might try page-pageslug.php first, then page.php, then single.php then index.php if it couldn't find any of those. WP uses what you'd call a dynamic loading structure.

Ok, thanks, got it and solved it :)
You rock...
 
i have one question,, where we can put out H1 or H2 tag? in header.php or else? or is it already automatic from wp?
thanks
can you make more clear what exactly you are looking to do?
are you looking to use h1 for the title tags??
or the post titles?
what you mean?