nwjames
Forum Replies Created
-
Forum: Plugins
In reply to: [Simple Taxonomy Refreshed] show_admin_columnI have been away for some days, so sorry for a delay in replying.
There is a capability to choose the ordering of the columns on the admin screen. It is the sixth option under the Taxonomies tab. There could be an issue there.
Please select that option; and it will give tabs for all post types involved in the taxonomies. Click on the appropriate post type. You will see a list of taxonomies that will be the order of display. Change the order of the taxonomies and then click the save button. You can move the order to back as it was; the important thing was you had to move something to activate the save button.
Then look at the
edit.php?post_type
screen to see if resolved.Regards,
Neil James
Forum: Plugins
In reply to: [Simple Taxonomy Refreshed] Problem after WP update to 6.7Thank you very much for this. Looking at the template, the call to output the terms is
the_terms( $post->ID, 'fe_author', 'by ', ', ', ' ' );
I see that you are using PHP 8.3 – which is getting more strict in its processing. You want
$post
to be theglobal $post
and not a local one. I don’t know that this is the issue, but it can be made explicit by addingglobal $post;
to the line, i.e.global $post; the_terms( $post->ID, 'fe_author', 'by ', ', ', ' ' );
Alternatively, you can make it (as used a couple of lines earlier):
the_terms( the_ID(), 'fe_author', 'by ', ', ', ' ' );
Hope this helps,
Neil James
Forum: Plugins
In reply to: [Simple Taxonomy Refreshed] Problem after WP update to 6.7Thank you very much for this.
Thank you for clarifying that you have changed from WP 6.2 as the issue could have arisen from the earlier releases..
Sorry for any confusion about the test I asked you for. This was an attempt to identify whether we could quickly get the taxonomy value printed out – but it relied on having a
the_content()
orthe_excerpt()
in the template. It was not to resolve the issue – not least of all it will be at the end of the content.Sadly the copy of the template did not come out as a single block of code. And, in particular, the part where the taxonomy is output of which the trailing part is
ID, ‘fe_author’, ‘by ‘, ‘, ‘, ‘ ‘ ); ?>
. It would be useful to know what the complete function is please. It will be from the<?php
immediately before this text.The taxonomy applies to both pages and attachments. Which type was it please? I am somewhat disconcerted to see your statement that the setting of the terms did not take. I loaded your taxonomy into my system and the Classic Editor plugin as well. I found no problem to add terms – including using the Quick Edit function.
Thanks for any clarifications you may make,
Neil James
Forum: Plugins
In reply to: [Simple Taxonomy Refreshed] show_admin_columnYou need to ensure that on the Visibility tab has the
Display a column on admin lists ?
value set to True for each taxonomy required.Regards,
Neil James
Forum: Plugins
In reply to: [Simple Taxonomy Refreshed] Problem after WP update to 6.7Thanks for sending the definition through. I have tried it – and it works fine.
However, fine means that in normal use, the taxonomy does not appear in the Front End.
As a test to see whether it will appear, you could try temporarily setting the
Display Terms with Posts
option toContent and excerpt
. This should ordinarily output on the page the value of the taxonomy term, though it does depend on whether your template usesthe_content()
and/orthe_excerpt()
to display these fields. You should in any case revert the option toNone
.Since you want the By line to appear near the top, you’ll need to amend the templates. I tried looking at the WP 6.7 changes, but nothing seemed to be relevant from a quick reading.
Would it be possible to make available the Article template page please?
Note. Since the By-line should appear before the content or excerpt, if your test does output the author term, then the code for the By-line will appear before the code
the_content()
orthe_excerpt()
so only that section is needed.Regards
Neil James
Forum: Plugins
In reply to: [Simple Taxonomy Refreshed] Problem after WP update to 6.7I am sorry to hear that you are having problems with my plugin and WP 6.7 and thank you for raising it with me.
I have looked at the page. I can agree that there is no reference to this taxonomy there.
Please could you do two thing to help me identify the problem:
- Go into the Taxonomies screen and, for the fe-author taxonomy, click the
Export PHP
option. This will create a file that you can download to your device that contains the parameters you have used to create the taxonomy. Please can you reply with this. I can use it to create the same taxonomy in my system. - Can you say how you are trying to output the assigned taxonomy elements, including the text of the shortcode or block being used for that.
Thanks for you help.
Neil James
Forum: Plugins
In reply to: [WP Document Revisions] How can we decrypt the default documents locationThanks. I’ll mark the topic as resolved.
I’ll give a response to your additional question. If you need a follow up, then please start a new topic.
My assumption is that you have previously loaded one or more documents and their different versions as Attachments and can you simply link them together as Documents.
If that is your scenario, then there is no provided method to do this. You should do it one Document (and its modifications) at a time. For this, you need to download them to your client, then create a Document with the Oldest modification and save it. Then update it with the next oldest modification and save that. Repeat the process until you get to the current version of the Document.
You may be able to then delete the original Attachment records from the system (to save space). However, the question is, are the Attachment records linked to Pages or Posts? If so, you would need to link to the Document (or one of its Revisions).
Hope this is of use,
Neil James
Forum: Plugins
In reply to: [WP Document Revisions] How can we decrypt the default documents locationThere is no need to decrypt anything – it is displayed to you.
Go to the standard administration screen, and select Settings and then Media.
In the Uploading Files section is a variable labelled Document Upload Directory where you can optionally enter the abolute file address of the document directory. If nothing has been entered, then it will be the Uploads directory used for images.
By default this is (root)/wp-content/uploads/, where (root) is where you installed WordPress.
Hope this is of use,
Neil James.
You will not find these details held in meta fields, Both the document upload and document description are held in the document field
post_content
.You will find in Version 3.6 of the plugin a file
docs/data-structure.md
(or in GitHub) a description of how the various records used by the plugin are held and linked. This should guide you in discovering how the data is put together and to replicate it.I wrote this since over the period that I have been helping with this plugin various users had problems at different times and did not know the structure without diving into the code. I also wrote the
validate structure
functionality based on this to see if the data could be corrected if it was not complete.I can make no comment on how you can make WS Form construct the data appropriately as I have no knowledge of it.
Hope this is of use,
Neil James
Forum: Plugins
In reply to: [Simple Taxonomy Refreshed] PHP Warning: Undefined array key “”Forum: Plugins
In reply to: [Simple Taxonomy Refreshed] PHP Warning: Undefined array key “”Thank you for raising this issue. I will prepare a fix.
If you are able to edit the code, then it should remove the issue for you.
Line 267 of includes/class-simpletaxonomyrefreshed-client.php
$hier = ( isset( $taxonomy['hierarchical'] ) && ! empty( $taxonomy['hierarchical'] ) ? $taxonomy['hierarchical'] : 1 );
[Note. This is a single line. It is wrapped as I enter the response to you.]
Regards,
Neil James
Forum: Plugins
In reply to: [WP Document Revisions] Change URL structureI would be able to help. I would expect your requirement to fall into two elements. One would be of general use – which I would expect to propose a change to the plugin itself. This could be to add an action hook. And the other would be the specific processing required.
I am not sure whether I should be putting an email address here, so I will do it indirectly. You can contact me by looking down these support topics and find one called “Notification Email”. In there I link to my GitHub repository for Email Notifications. Amongst the files is one called docs/SECURITY.md that gives my email address.
Hope this is of use,
Neil James
Forum: Plugins
In reply to: [WP Document Revisions] Change URL structurePlease go to Settings -> Media and look at the last two options.
The first of these is labelled “Document Slug”. Change this from its default value of “documents” to the name of your choice.
The second is a checkbox which, when checked, will not write the month and year into the URL,
Then save these changes. That is all you need for all new (or edited) documents.
You may have some existing documents with the old permalink structure. You can use the Validate Structure option to fix the permalink names of existing documents. However, as delivered, you will need to do this for each document individually by clicking on each button marked “Fix”. Each is individually quick but it can be tedious doing a large number of documents one at a time.
Hope this is of use,
Neil James
Forum: Plugins
In reply to: [WP Document Revisions] Need an Update button for the description too.Thanks for raising this issue.
The system is meant to work in the following way. When the screen is first displayed the Update/Publish button is disabled. When you make an update that can be saved then the button is enabled.
You are correct that when the description field is updated then the button should be enabled.
It is a bug that it does not. I will propose a fix that will allow this to happen.
By making a “null update” to another field you are able to save the change; e.g. add a space to the title and then delete it again. An alternative is to add a taxonomy term and remove it again.
Regards,
Neil James
Thank you for your fast response.
I have loaded this version and can confirm that the message no longer appears.
Neil James
- Go into the Taxonomies screen and, for the fe-author taxonomy, click the