da_silva
Forum Replies Created
-
Forum: Themes and Templates
In reply to: The best designed WordPress powered sitesvery few WordPress powered sites that actually use wordpress as a CMS but have the look and feel of a real website not a blog but the one at http://www.michaelyon-online.com/ really impressed me. Another one I remarked today accidentally is the one at http://xxlmag.com/ which looks cool. If you know others like these ones then post them here i am very curious about such designs.
Forum: Everything else WordPress
In reply to: installing wordpress at work10x Kafkaesqui.
Forum: Fixing WordPress
In reply to: how could i create a post from some info ?noone?
i would basically take some data from the visitor and fill a post with them but i don’t know how to do the filling of the post with the data and thought some of you can have the answer.10x.Forum: Plugins
In reply to: Custom Field for Categories / Category Meta TagsI guess you could use the category description of every category to store those data and much more just by placing some tags like the <!–more–> tag in posts and each tag should delimit a certain type of data.
Say there could be a tag for meta keywords like <!–key–> or simply <key> …</key> and then you read the description in an array which has the $key = the tag you wrote and the value the string from the tag to the next tag. It’s just a rudimentary ideea but it can be elaborated. You could write any tag there and the function would recognize it and fill the right key-values in every value of the array. And after that with some plugin you could place that info where it belongs.
After all, this is some sort of describing that category…meta keywords and so on, even the filename and/or path to the image associated with that category.Forum: Plugins
In reply to: setting a query_var to another template filethat would be really nice and i will, but is it so complicated that i need to read a plug-in? i thought it was a couple of lines of code…:-/
…oh, yhey are a couple of lines of code :D, but what about the redirection thing, all i read i didn’t understand very well…i would need an example, can u provide one?
Forum: Plugins
In reply to: setting a query_var to another template fileyes this would have been an easy solution but i am trying to get the internals of wordpress and the thing with redirection was vey interesting, i’ll wait for an answer concerning this .
thanks anyway:)
Forum: Themes and Templates
In reply to: admin theme: changing class=”updated fade”why don’t you cut the fade part of the definition if that is to blame for the space ?!
Forum: Fixing WordPress
In reply to: Referencing both Home.php and index.phplong since last reply here but i find myself in the imposibility to understand how can i use index.php insted of single.php for some categories and single.php for the rest of them?
the thread started for this is at http://wordpress.org/support/topic/89493?replies=10. Can you please heva a look and suggest a solution?
i would set the variable that holds the single.php as the template for single posts to index.php for the “some” categories and rewrite it with the initial value of “single.php” for the other categories.
thanks.
Forum: Fixing WordPress
In reply to: making links to posts not open in single.phphmmm,
add_action('template_redirect', 'file')
Could this be what i am looking for? If it is, where can i use it? Where can i write something like:if (in_category(9)and in_category(10))?
add_action('template_redirect', 'cat9_10');Forum: Fixing WordPress
In reply to: making links to posts not open in single.phpthis is exactly what i’m trying to do, find some method to “avoid” wordpress to call single.php when showing posts in some categories and “force” index.php to do that while use single.php for other categories.
Can you point where exactly does wordpress process this?
I’ve seen onhttp://codex.wordpress.org/User:alphaoide/wp_powered_photoblog
that trying to force “$wp_query->is_single = true;” in index.php would do the trick but i can’t seem able to do that.
edit: i’ve started to read any function called from the index.php in wordpress up to index.php in my template and i’ve found some hints. So I guess template_loader.php does assign the single.php template if is_single() is true for any page…digging further…
Forum: Fixing WordPress
In reply to: making links to posts not open in single.phpI really don’t want to use plugins, i want to understand how it is done.
Please make me understand how every permalink with the ?p=xx (xx-the post’s id) gets processed by single.php.
As far as i can understand when one types ?var=… after index.php for example that means the irrespective variable is passed to the php page so it does whatever needed with it. In our case, how does index.php handle this variable?Forum: Fixing WordPress
In reply to: making links to posts not open in single.phpsorry for insisting but no one has an explanation? 🙁
Forum: Fixing WordPress
In reply to: making links to posts not open in single.phpi want it displayed the same as all the posts in a certain category are displayed, only that this time this alone will be displayed with the comments. I don’t know if you understand, imagine that you click a category that has 5 posts listed under each other. When you click on one title you get in the single post view, with no sidebar (depending on how single.php is constructed). I want to use index.php as target for single posts and not single.php.
I don’t know if it’s possible without deleting the file , as i know that the hierarchy works like that. But some of the posts, that are large with large images would look better without sidebar so for those ones i want to display single posts in single.php.
Hope you understand anything 😛
Forum: Fixing WordPress
In reply to: querying a table bypassing wp-dbnobody? :-/
Forum: Fixing WordPress
In reply to: querying a table bypassing wp-dbThis one was stupid, i’ll reword it: i have a field in the database which is basically php code and i want it to execute when the field is extracted from database. How can i do this?