cycad
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Images vanishing randomlyI’ve just come back to this because it’s happened again. I assume nobody else has seen this issue?
I have 2 images in a post, 1 and 2.
In the thumbnail editor view, both are correctly displayed.
The large version of image 1 has vanished from the server. It simply does not exist, even though the thumbnail is still there, and the large image was there when the post was made.
Macbrink, clearly you suspect this is user error. I am happy to believe this and deal with it through training, as I usually do if we have a user error problem.
However, in this case, I simply cannot see how my editors could be doing this. I cannot train them not to do it if I don’t know how it is being done! I am really hoping someone will have some idea how this could happen: we can work around it if we can get some idea of how it is happening.
The editors don’t have FTP access. The only way they could delete or rename an image would be via the control panel, and that would delete or change both the thumbnail and the larger image. I’ve even changed the FTP details in case someone was somehow logging in accidentally.
If I wanted to produce this effect deliberately I don’t know how to do it.
I have about 40 other sites on that server,running various different content management systems, and the only system where images are doing this random vanishing thing is this one, which leads me to think that it must be a WordPress thing.
To clarify Macbrink’s post, I don’t have entire posts disappearing from the server. I think he/she must have got this impression because I responded to a question from someone else who did have that problem, because I hoped I might be able to help that other person – not because I have the problem too.
If I ask for help on a forum, I like to look round at the same time and see if there is anyone asking stuff that I might be able to help with. Kind of a do as you would be done by thing.
Forum: Fixing WordPress
In reply to: Posts Getting Accidentally Deleted. Any explanation?Does the post actually disappear from the database, or is it just not showing in Manage?
Forum: Fixing WordPress
In reply to: Images vanishing randomlyNobody seen anything like this at all?
Forum: Fixing WordPress
In reply to: Line breaks vanishingOK, I have now installed this plugin: https://dev.wp-plugins.org/wiki/TextControl
This knackers my small dog charity website if I try to change away from the default formatting (wpautop) but if I leave it turned on and set to the defaults, my line breaks work.
I find this pretty baffling, and will certainly be thinking twice before I upgrade again :-(((
Forum: Fixing WordPress
In reply to: Line breaks vanishingAn example is https://www.oldies.org.uk/?p=1245 – look for the address. In the database, the postal address is spaced with line breaks, but they aren’t appearing in the page.
Forum: Fixing WordPress
In reply to: Line breaks vanishingYes, that worked: good. That’s the sort of line break I need: the sort that is being removed.
Is it because I’m using a wordpress theme that was created for 1.4 perhaps? Can anyone give me any hints on how I should update this theme so that SINGLE, non-formatting line breaks can be used?
Forum: Fixing WordPress
In reply to: Line breaks vanishingHaving found the thread https://www.ads-software.com/support/topic/74129?replies=32 which suggests removing the wpautop filter, I should make it clear that I don’t have a problem with it removing multiple line breaks. That’s fine: I have no problem with using css to add extra spacing if I need it.
However, what it is doing at the moment is removing ALL line breaks – even single ones used correctly to break up an address into separate lines, for example.
I think
I can
Create single line
breaks here.Forum: Plugins
In reply to: Number of displayed posts per page according to categoryShun, I am still using this same gadget on my site, now upgraded to the latest version of WordPress, and it does still work.
It sounds as though you had some minor problem with the exact php coding of the plugin file, then deleted your wp-config.php file when you deleted the entire site.
Do you have a backup of your config file? Alternatively, can you resurrect your wp-config.php file from the provided wp-config-sample.php?
I’ve been working on search engine optimisation for quite a lot of different websites for 8-9 years now. I’ve never seen a site that wasn’t spidered because it didn’t have a robots.txt.
Much, much more likely that the site that started this myth (I’m sure there was one) didn’t have a robots.txt and coincidentally, wasn’t spidered for some other reason, probably lack of inbound links.
I rarely use robots.txt on a site because it’s not really reliable as an exclusion (sometimes engines miss it – I have seen this happen, though not often). If you do want stuff spidered, you don’t need it. If you don’t want stuff spidered, put it behind a password.
Forum: Fixing WordPress
In reply to: Completely turning off rich text editor in WP2Thing is, this seems to be a new thing with WP 2.0. Version 1.5 didn’t preserve any hidden formatting, it was more like pasting into an ordinary textarea.
I’m wondering whether to go in and manually removed the rich text editor from the code and just leave a plain form field, but that would leave me with even more headaches next time I wanted to upgrade to the latest version….
Forum: Fixing WordPress
In reply to: Anyway to convert old static posts to dated WP posts?If it’s a completely manual system and your static posts are just plain html, then I fear your only option is to
manually copy and paste each entry, and then adjust the timestamp on each one as you do it.(Post Timestamp, in the right hand column next to your write post box : you might have to click the + to open up the box to see it, if you hadn’t noticed it lurking there).
A bit of a pain, I know!
Forum: Plugins
In reply to: Number of displayed posts per page according to categoryOk, in case anyone else has this problem, I got mine to work by changing the If statement slightly like this:
if($cat==’1′)
{$num = 70;}
if($cat == ‘2’)
{$num = 70;}
if ($cat > ‘2’) // Changed from else, which didn’t work
{$num = $posts_per[‘category’];}Forum: Plugins
In reply to: Number of displayed posts per page according to categoryThis should do just what I want – but I can’t make it work.
The perpage.phps works fine, but setting $num to anything other than $posts_per[‘category’] doesn’t seem to work – I just get the default number of posts on every category.
Should the variable name definitely be $cat, or should it be something else?
Forum: Fixing WordPress
In reply to: display count of posts in one category only?Ok, just in case anyone else wants to do this, this is how I did it:
I put my database name and password in wp-config.php like this:
$oldiesdb = mysql_connect(“host”, “user”, “pass”); // This is duplicating stuff WordPress already does, but hampered by my tiny brain, I found this easier.
$oldiesdb_name = “dbname”;
mysql_select_db($db_name,$db);Then, in my index.php template, I added :
mysql_select_db($oldiesdb_name,$oldiesdb)or die(“Error connecting to Database!
” . mysql_error());
$rehomed = mysql_query(“SELECT * FROMwp_post2cat
where category_id = 9″,$mydb); // select the records in the correct category, and store them as $rehomed
$num_rows = mysql_num_rows($rehomed); //how many rows are there in $rehomed?echo “$num_rows Dogs listed on this website have found a home since April 2005! “; //Display the total number of rows as HTML text.
You can see it on https://www.oldies.org.uk (Near the bottom – ‘Ted Says’.)
Forum: Fixing WordPress
In reply to: display count of posts in one category only?I think I can probably write the query myself (not well enough to write a plugin, but well enough that it will work on this one site for this one task anyway!)
I *think* what I need to do is query the post2cat table for all the records that have the ‘rehomed’ category ID, then count how many records there are.
I was hoping it might have been something that had come up before as I am sure my version will be much longer and less elegant than proper WordPress code, but never mind!