Steven
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: blogroll errorHave you tried google the error message?
Maybe this will help:
https://forum.powweb.com/archive/index.php/t-76899.htmlForum: Fixing WordPress
In reply to: How to buld new site ?Dude, firstly you need to get yourself up to date with a website is.
Then you need to understand what WordPress is.
It’s no problem using WP as a CMS.Some starters:
https://codex.www.ads-software.com/Getting_Started_with_WordPress
https://www.siteground.com/tutorials/wordpress/
https://www.blogadr.com/tutorials/free-wordpress-blogging-tutorial/Good luck.
Forum: Fixing WordPress
In reply to: Neue Blog-Beitr?ge wedren nicht ver?ffentlicht?Vielleicht, wenn du am English schreiben, a lot more ppl will answer ??
Forum: Fixing WordPress
In reply to: Invalid markup in wp_list_bookmarksright…. let’s try that again, this time I’ll put my HTML tasg INSIDE a code quote ??
The invalid markup is the <li> tag just after the <div> tag. You cannot use <li> without either an <ol> or <ul>. Please correct me if I'm wrong here. Is this a "bug" in the wp_list_bookmarks function?
Forum: Fixing WordPress
In reply to: List linksThat’s what u get for bad uasbility. U read the red lines then go on searching ??
Forum: Fixing WordPress
In reply to: What am I missing?Thanks, you pointed me in the right direction.
My pages are using single.php to display a single post.
Changing this I’m able to customize the output.Thanks!
Forum: Fixing WordPress
In reply to: moving scripts from headerYeah, call to .js scripts needs to be in the header.
But actual javascripts should be put in the footer if possible.I’ll leave it be for the moment.
Thanks.
Forum: Developing with WordPress
In reply to: Google Apps and WordPressHas anyone gotten the wpng-calendar to work?
I tried installing it and it doesn’t work.It also produces som javascript error – which I can’t figure out what’s wrong.
Forum: Fixing WordPress
In reply to: Multiple WP installs on one domain: Stupid or notsoStupid?And here comes the conclution ??
You can select to pay for aditional hosting (new DB and new site) or you can use an existing hosting. The last one is offcourse the cheapest ??
Now – I don’t remember so much from my installation – it was a while ago. But in theory it goes something like this:
The database
————–
When installing a new WordPress, you will have to decide which DB you want to install it on. You can either select a new DB or an existing DB.If you select an existing database, you wil have to change the prefix for the tables. By default it is ‘wp_’. A good thumb of rule is to have the (web)site name as the prefix.
If you do not change the prefix, you will overwrite the existing DB and then you are f*** ??
And that’s it. You now have the database in place.
The site
————
To save money on hosting, you can do as I have done. Install a new wordpress on an existing website. In the filestructure it will look like this:My site / WordPress 1
My site / WordPress 2
My site / WordPress nTo acess them you just type in:
https://www.mysite.com/wordpress1
https://www.mysite.com/wordpress2
https://www.mysite.com/wordpressnBut you probably would like your own domain names. Buy a domain name and have it point to the site you wish. Then instead of typing https://www.mysite.com/wordpress2, you can now access the site typing https://www.my_new_site.com.
Hope this is helpfull.
For more advanced support – brows the web ??Forum: Fixing WordPress
In reply to: How to display current page informationI got it working!
<?php if (have_posts()): while (have_posts()): the_post(); wp_title(''); echo '<br />'; the_content(); echo '<br />'; endwhile; endif; ?>
One of the first things I tried was using The Loop. But it didn’t work.
Does this mean a Page is also considered as a post by the system?Well, it works and I’m good to go ??
Forum: Fixing WordPress
In reply to: How to display current page informationI use the following code:
<?php /* Template Name: Artist List */ ?> <?php get_header(); ?> <div id="content"> <div class="spacer20px"></div> <?php wp_title(''); echo ''; the_content(); echo ''; the_ID(); echo ''; ?> (...)
Forum: Fixing WordPress
In reply to: How to display current page informationNo, it’s not the Excerpt.
It’s the field just below the Title field on a page.Getting stuff from the custom fields is easy.
Forum: Fixing WordPress
In reply to: How to display current page informationOk, so wp_title(”) will get me the name of the page.
What about the page description? How can I output that?Forum: Fixing WordPress
In reply to: Multiple WP installs on one domain: Stupid or notsoStupid?I’m pretty new with WordPress, but I think you can have as many WP installations in one domain as you like.
To access them you just use sub domains or /blog_a / blog_b and so on.
From the CMS world (Content Management System) you have to have the sites using the same instance of the CMS to be able to cross publish between solutions / websites.
If I do 2 separate installations of the same CMS, they will not share DB and it will be more difficult to cross publish. I would assume it’s the same for WordPress.
However I have no clue how – or if it’s possible to have several blogs using the same WordPress installtion / database. It WordPress built for that?
WP is a blog and not a full CMS. So until WP gets there, use RSS feeds to “cross publish”.
Forum: Fixing WordPress
In reply to: Counting posts within categoriesFinally, Thanks to all the help here I managed to solve it.
This code gets the number of published posts in one or more categories:function get_post_count($categories) { global $wpdb; $post_count = 0; foreach($categories as $cat) : $querystr = " SELECT count FROM $wpdb->term_taxonomy, $wpdb->posts, $wpdb->term_relationships WHERE $wpdb->posts.ID = $wpdb->term_relationships.object_id AND $wpdb->term_relationships.term_taxonomy_id = $wpdb->term_taxonomy.term_taxonomy_id AND $wpdb->term_taxonomy.term_id = $cat AND $wpdb->posts.post_status = 'publish' "; $result = $wpdb->get_var($querystr); $post_count += $result; endforeach; return $post_count; }
I also tested trying to count unpublished posts. That however didn’t work. According to Writing Posts, a post has three states; Published, Pending Review, and Unpublished. But looking at other code I find the following post_status: draft, future, publish and private.
Changing the $wpdb->posts.post_status = ‘publish’ to any of the other three, only returns 0 (zero) even though I have created 2 posts and not published them. So I have no clue on how to count those.And if you try to use the wp_count_posts(), you will not get the number of posts for a specific category. I’m not quite sure what it actually reads.