dorich
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Best Practice For Page Templates@ Chip Bennet
Thanks for your response.
Now with hindsight I realize the ambiguity of my question.
But first a clarification. I’ve not modified existing page templates, only added templates based on existing templates. These new templates have been added to the theme folder. I made the assumption that storing additional page templates in the main theme folder was appropriate but based on your comments perhaps additional templates should always go in a child theme?
I’m just learning about child themes – only because I wanted to load different Javascripts to different pages. If I understand correctly this creates a problem because when WP upgrades it will overwrite the theme returning the theme files to the original state and hence the changes to header, where I placed links to the scripts would be lost – but perhaps I misunderstood and this only happens if the theme is upgraded?
Anyway if my assumption is correct then I was wondering if the process of updating WP would erase any new page templates that were added to the theme file. Or does this only occur when you update a theme?
Another reason I ask is that I’m about to upgrade WP to 3.1 and even though a backup would save me I would like to anticipate any changes I need to make with regard to where to locate the page templates.
Thanks.
Forum: Fixing WordPress
In reply to: Create a list of posts with their ID's. Custom Post TypeThanks for your response.
I previously scanned the contents list thinking it would be a major topic and didn’t see it.
Prompted by your suggestion I trawled through the whole page and found it under the section “Type & Status Parameters”
Forum: Themes and Templates
In reply to: Feint Table Lines – How to removeThanks, very much appreciated.
Forum: Themes and Templates
In reply to: Feint Table Lines – How to removeThat solved it thanks very much!!
One more question if I may.
I now need to add back custom borders and so I would guess that I should identify unique tables with an ID and then make the selector a combination of the table ID and whatever tags/selectors I need.
For example #table1 .header
Or is there a better/more elegant way to approach this.
Thanks again.
Forum: Themes and Templates
In reply to: Feint Table Lines – How to removeDo you want to remove all of it?
When creating the table, do <TABLE BORDER=”0″>In css:
table { border: 0;}
Thanks for your response.
I believe I’m doing what you suggested but just applying it to one cell instead of the whole table. However, if you see anything incorrect in my rule please let me know.
Thanks.
Forum: Themes and Templates
In reply to: Feint Table Lines – How to removeThe theme’s CSS is adding a border on #content tr td. But Don’t edit the Twenty Ten theme! Your changes will be over-written the next time you upgrade WordPress or the theme. For this reason, it is recommended that you consider creating a child theme for your customisations.
Thanks for your response
The css with my additional rules is being loaded via a child theme, so i don’t touch the main theme.
However, I’m guessing that my rule is being overwritten for some reason.
Forum: Fixing WordPress
In reply to: use "is_page(x)" to load scriptsThe problem is with the add action hook.
To make this work the hook has to be wp.See this discussionfor some analysis.
Forum: Fixing WordPress
In reply to: Loading Scripts on specific pagesForum: Fixing WordPress
In reply to: How To Activate a jquery ui dialogMy apologies but I don’t immediately recall the specifics of the solution. As best I can recall the problem was solved once I understood how to implement child templates correctly.
I’ll go back through my notes during Friday to see if I can find information on what I did.Forum: Fixing WordPress
In reply to: add action / function does the order matter?Thanks.
Forum: Themes and Templates
In reply to: Does Automatic Upgrading Overwrite The Theme Files?Thanks, and thanks for the guidance.
Forum: Fixing WordPress
In reply to: Testing for Values Passed in URLvtxyzzy
Thanks.
I was assuming that this needed a “If then else” statement but apparently not.
Your solution works perfectly.
Much appreciated.
Forum: Plugins
In reply to: [CMS Press] [Plugin: CMS Press] Appears To Break The Default Search FunctionDo you have any more detail for this? What do you mean by breaks? It doesn’t work as expected or you receive errors?
There were no errors returned.
Instead I was getting nothing returned.
If I deactivated cms press then the search returned the expected items.
Forum: Fixing WordPress
In reply to: building a query of a custom post type and custom field.vtxyzzy
I thought your solution was better
You could also just default to the letter ‘A’ if you wanted to.
But I don’t know how to test it.
First the code I used to direct to the A page if there is nothing passed in the URL was
if ($letter=="") $letter==A;
Then with regard to testing I clicked on a link to produce a page that lists all posts whose title starts with C.
Next I edited to URL to remove only the letter, so that the end of the URL is:
glossary-list-by-first-letter?letter=
However, that produces the following error message
Fatal error: Call to a member function have_posts() on a non-object in /home/XXXXXXXXX…../twentyten/glossaryListLetter2v0.php on line 14
Not sure if my code is wrong or/and I need a better test method.
Any suggestions would be much appreciated.
Thanks.
Forum: Fixing WordPress
In reply to: building a query of a custom post type and custom field.vtxyzzy
Thanks for your help.