jamesthemonkeh
Forum Replies Created
-
Thanks for the response. Yes, it looks like either late yesterday or this morning these were removed.
Good
Forum: Developing with WordPress
In reply to: Cannot Sum Array From Custom TaxonomyWell I think you found the answer – adding the rating to custom fields instead of taxonomy gives me what I’m looking for!
$my_array[]=get_field( 'rating' );
Thanks.
You are correct that using term names was ill considered – this was built a few years ago, before I knew any better.
So now I have 150+ posts each using about 15 custom taxonomies. I have too many posts to convert the data manually, and cannot say I especially fancy trying to do so programmatically with close to zero database knowledge. Maybe I should?
I also have some performance issues on editing/saving posts that use up 100% of server CPU, making website unusable for 5 minutes each time I save (or WP autosaves) and had wondered whether my mass use of taxonomies was causing the issue…not got around to debugging that…again mostly because I don’t know much away from front/end.
Thanks again.
- This reply was modified 4 years ago by jamesthemonkeh.
- This reply was modified 4 years ago by jamesthemonkeh.
- This reply was modified 4 years ago by jamesthemonkeh.
Forum: Developing with WordPress
In reply to: Cannot Sum Array From Custom TaxonomyThanks for the responses. I am using PHP 7.1.9 so this should be fine.
So I tried creating a new array and converting strings, using:
$arr2 = array_map(function($value) { return floatval($value); }, $my_array);
This resulted in an array of 0’s:
Array ( [0] => 0 [1] => 0 [2] => 0 [3] => 0 [4] => 0 )
I cannot understand why. My assumption is that it is data-related and the code is fine, as if I change my original array to be an array of strings, as @bcworkz above, then the sum works.
Forum: Fixing WordPress
In reply to: Get Content Iframes on RSS FeedWell the client app is a different website of mine.
Currently I am using:
include_once( ABSPATH . WPINC . '/feed.php' ); $rsslist = array( 'https://www.houseminimaltechnodisco.com/feed/' ); $rsslist2 = array( 'https://www.djmixoftheweek.com/feed/' ); // Get a SimplePie feed object from the specified feed source. $rss = fetch_feed( $rsslist ); $rss2 = fetch_feed( $rsslist2 );
- This reply was modified 4 years, 7 months ago by jamesthemonkeh.
Forum: Fixing WordPress
In reply to: Homepage Permalink Is WrongThanks for your response. You are right that Yoast is doing it for me, I should have realised!
Incidentally adding wp_reset_query() didn’t fix it (it makes sense that it should), but it is irrelevant.
Thanks
JamesForum: Developing with WordPress
In reply to: Custom Taxonomy Query Not WorkingThanks for your answers and explanations.
I realised that the easiest way to do this is just add a custom field rather than a custom taxonomy, and sort that way.
Much appreciated
JamesForum: Networking WordPress
In reply to: WordPress 5 Upgrade – API files returning 404 on MultisiteThe error was caused by a rewrite rule in our web.config file:
<rule name=”API” stopProcessing=”true”>
<match url=”API” />
<conditions logicalGrouping=”MatchAll” trackAllCaptures=”false” />
</rule>We are due to upgrade to PHP7 soon – I’d need to get one of our b/e developers to do that though as I don’t have access. Not something I will be able to get done straight away I’m afraid.
The permissions for wordfence-waf.php are as follows:
DBTEST\FTP Users:(ID)F
DBTEST\BasicAuth:(ID)R
BUILTIN\IIS_USERS:(ID)R
BUILTIN\Administrators:(ID)F
NT AUTHORITY\SYSTEM:(ID)F
BUILTIN\Users:(ID)RApologies, I do not have them in numeric format.
Hi Dave
I have tried both of the above (display_errors was already set to on) but there are still no errors logged or displayed.
We are running PHP version 5.6.17.
Kind regards
JamesForum: Fixing WordPress
In reply to: Pages Not Working On Child ThemeAmazing! I had added a custom taxonomy called ‘year’. I’ve changed that now, swapped the permalinks away and back to post-name and it is all working.
Thank you ever so much ??
Forum: Fixing WordPress
In reply to: What Is My Custom Taxonomy SlugAmazing – how did I not know this from 6 months of developing with WordPress?!!
Have a good day/night ??
Forum: Fixing WordPress
In reply to: I Have No List Of BlogsOK I am further forward.
I have a folder called “blog” in my file structure. If I delete it, I can then see my blog.
However it then quickly recreates itself.
Help!!!
Forum: Fixing WordPress
In reply to: I Have No List Of BlogsThanks for responding. I have the posts page sent to blog. But all that displays on screen when I go to https://iwillbeawebdeveloper.co.uk/blog/ is a basic directory screen.
Forum: Fixing WordPress
In reply to: Wp-admin page not foundI have concluded it is an issue with my host and will contact them. Thanks for responding.