allstar
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: exclluding category from recent postsFirstly, my virus scanner is picking up a trojan in your jQuery.js. I’m giving you the benefit of the doubt that this is unintentional.
Secondly, there is only one ‘1234’ shown in the code making it obvious what needs changing.
Thirdly, thanks for showing me your site now I know you wanted to filter the recent posts in your sidebar on the homepage as opposed to the most recent posts on your homepage. Usually get_posts() is used for a sidebar post list which lead me to the wrong conclusion.
Since it is a secondary loop perhaps you should try the codex page, it even has tutorials on your specific problem to help you.
Good day.
Forum: Fixing WordPress
In reply to: exclluding category from recent postsThe below when put in your active themes functions file will remove category ‘1234’ from that URLs query even if there is already a category excluded or not.
Also, if you want to remove it just from the homepage the is_home() conditional will only remove it from the homepage.
function category_remove() { global $wp_query; $category_to_remove = 1234; if ( is_home() ) { $wp_query->query_vars['cat'] .= ( $wp_query->query_vars['cat'] == '' ) ? $category_to_remove : ','.$category_to_remove ; } } add_action('pre_get_posts', 'category_remove');
Forum: Fixing WordPress
In reply to: wpdb – Any records returned?Ended up using a switch for returned rows
switch ( $wpdb->query('SELECT .....') ) { case "0" : // nothing in database case "1" : // one record case default : // many records or query breaks //there is an error as max should be one row! }
Forum: Fixing WordPress
In reply to: Can’t read Formatting_Functions information on codexThank you.
Why doesn’t it just say that rather than imply I’m not allowed to see it?
Forum: Fixing WordPress
In reply to: Hook before page load/displaySorry forgot to mention that I can’t put it in the index.php file because I need to check a person is logged in.
Forum: Fixing WordPress
In reply to: Help a Complete n00b…Is wordpress right for me?They way I’ve understood it you want you main ‘index’ page to have news on it.
WordPress doesn’t by default have index.html as its main page, it has index.php, a subtle difference but worth pointing if your concerned about such things. Usually you just see the forward slash then all the sub pages/posts etc. This can be ‘faked’ using the built in permalink structure but the modern way is not to show the ‘index.html’
You would be better putting your design around the information wordpress displays. This is what is called a theme. They are not scarey things, many are available for free from www.ads-software.com and many more outthere although you are better staying on wordpress’ home turf.
The pages you will be refering to most if you decide to input wordpress into your design are here. You put them where you want the information they create to appear. Everything is well documented so if you read enough you’ll be one of the best around.
Hope this helps.
Forum: Fixing WordPress
In reply to: Some sort of 404 error pagewp_list_pages() in your 404.php theme file?
Forum: Fixing WordPress
In reply to: Absolutely Nothing Appears when visiting my siteBlank pages seem to appear now if you delete the theme you are using (it used to revert of the default theme).
There the backend being able to be styled perhaps you’ve lost/deleted the backend theme aswell as the frontend?
Forum: Requests and Feedback
In reply to: Options to enable/disable post revisionsI think wordpress is heading down the path where it will need to ask if its a multi author blog or a single author blog. A few features have trickled in that the singular author doesn’t need.
<u>For example:</u>
Post Pending
Post RevisionsForum: Fixing WordPress
In reply to: Customize the date for stacked Month, Day, Year layout?Try using ‘the_time()’ for all 3.
Sounds silly but it works because the_date will only work once per post… ??
Forum: Requests and Feedback
In reply to: Catagory issues with 2.6 upgradewp-admin >> manage >> categories >>
Categories amd sub categories are not being listed on this page. I have 15 total and I only see 8.
You are not the only one.
Forum: Requests and Feedback
In reply to: Options to enable/disable post revisionsThis post revision malarky definitely needs and off switch, got 30 posts on my new portfolio site and 70 revision entries. Its almost as bad as spam filling up the comments db table.
Forum: Fixing WordPress
In reply to: Auto FormatingIt appears to simply not add paragraph tags when it runs the loop in templates.
Forum: Fixing WordPress
In reply to: Auto FormatingResolve by deleting
add_filter('the_content', 'wpautop');
from /wp-includes/default-filters.php (around line 108 in 2.5.1).Forum: Plugins
In reply to: Multiple Database Tables for PluginThe initial test was creating 1 Database table. Which stored the database version number.
The reason the plugin didn’t create the 3 tables was it was checking to see if the current database was a modern version. Which it was so it didn’t need to add the ‘new’ tables.
Deleting the database version number from wp_options allowed all 3 tables to be created on installation.