kramer65
Forum Replies Created
-
Forum: Plugins
In reply to: [Plugin: self build] Select posts with a set dateTurns out that when the date field is left empty it saves as a single space. So I added the following:
$query->set('meta_key', 'featureddate'); $query->set('meta_compare', '!='); $query->set('meta_value', ' ');Forum: Plugins
In reply to: [Plugin: Select posts with custom date field smaller than date('ymd')]Excuse me! The mistake was in the date(‘ymd’), which should have been date(‘Ymd’).
So the final solution (including sorting on the featureddate) is as follows:
<? function alleen_featured( $query ) { if ( $query->is_home() && $query->is_main_query() ) { $query->set('meta_key', 'featureddatum'); $query->set('meta_compare', '<='); $query->set('meta_value', date('Ymd')); $query->set('orderby', 'featureddatum'); $query->set('order', 'DESC'); } } add_action( 'pre_get_posts', 'alleen_featured' ); ?>Thanks anyway for reading!
Forum: Fixing WordPress
In reply to: How to only show selected posts on frontpageThanks for that. The thing is that the users are restricted to only post in one category. The aim is that the users have no power over which posts go on the front page. That decision can only be made by the website administrator (ie: me). If I would do it using the custom fields I would give that power to the users posting the items, which could eventually result in an overloaded frontpage anyway.
In addition to that, I want to control the order of the posts on the frontpage. Would there maybe be a way that I can do this by manually making a list of post-id’s (in a file or new database table), which I can order to my liking and which then gets displayed on the frontpage in that order? Is there possibly some kind of plugin for this? Or would it be hard to make this myself? I guess I would need a custom query for that (I never hacked into wordpress before).
Or is there an easier option of doing this? Is it for example possible to setup wordpress multisite so that every user has instead of an own category, an own wordpress site. Is it then possible to only put selected posts from some of the wordpress sites on the main frontpage?
All tips are welcome!
Forum: Themes and Templates
In reply to: How to fix image alignment to right in custom theme?Thanks for that tip. I installed it and checked through firebig whether the css was actually in the css file. I then found out that I pasted it in style.css instead of content.css. So I also added the code to content.css, and that has “some” influence, but so far not the desired on.
the complete block of text moved something to the right, but not the image itself. Do you possibly have any idea what I am doing wrong?
Forum: Fixing WordPress
In reply to: How to hide the "Admin Color Scheme"..?Ok, in the end I manually fixed it. For users which lateron read this. It can be done by deleting or commenting the lines 199 to 205 in the file wp-admin/user-edit.php
Cheers!
Forum: Fixing WordPress
In reply to: How to clean the database?Alright. Thanks a lot!
Forum: Fixing WordPress
In reply to: How to clean the database?Ok, I’m sorry. It is indeed true that I really really apreciate the feedback people are giving, and thus there should be no such thing as “demanding people” like me on forums like these.. :S
Nonetheless I really apreciate your answer as well! I Think that in this case I’ll just leave things the way they are..
I’ll maybe do a “Optimize tables” in phpmyadmin. That wouldn’t hurt right?
Thanks again!
Forum: Fixing WordPress
In reply to: How to clean the database?Nobody any idea..? (bump)
Forum: Fixing WordPress
In reply to: How to avoid "Error: please fill the required fields"?Nobody has any idea about this..? :S
Forum: Themes and Templates
In reply to: Where do I change rel="tag"?Ok, I now found that rel=”tag” is not a css element for appearance.
Is there a way however, that I can change the way the_tags() is working so that I can add a class=”tag_link” to the links?
Any tip welcome!
Forum: Fixing WordPress
In reply to: Where is the register button in WordPress?Great! Exactly what I needed! Thanks a lot!
Forum: Networking WordPress
In reply to: WordPress MU from start or switching later?Ah, I’m sorry. Well, thank you so much!
I hope that in a years time my video blog rocks the world, and that will then partly be because of you! 🙂
Forum: Networking WordPress
In reply to: WordPress MU from start or switching later?Hi Andrea. Sorry for the late response, but I would still like to ask you about your answer (if possible).
You say that it only affects the main site. The thing is that I do want one main site (in English) under http://www.mydomain.com and then some different languages under subdomains such as nl.mydomain.com and de.mydomain.com.
So in the case that I would actually use the main site together with some subdomains, would I have the main site under http://www.mydomain.com/blog/123-post.html or would it also be possible to have the main site under http://www.mydomain.com/123-post.html?
Forum: Networking WordPress
In reply to: WordPress MU from start or switching later?That’s true, I can just enable it now anyway. That also gives the advantage that I can test it through while the site is not launched as yet.
One other thing I read though, was the following:
While permalinks will continue to work, the main blog (i.e. the first one created) will have an extra entry of blog, making your URLs appear like domain.com/blog/YYYY/MM/POSTNAME
I currently have it set so that individual posts are named domain.com/1234-post-title.html
So would that mean that if I enable multisite now I would get urls like domain.com/blog/1234-post-title.html?Cant I remain to use permalinks like domain.com/1234-post-title.html (so without /blog) even though I run multisite (with subdomains)?
Forum: Fixing WordPress
In reply to: How to put something in "The Loop"?Alright, that explains things!
The index.php of the theme is as follows: http://wordpress.pastebin.com/EQSgGYvg