makeusawebsite
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Site is redirecting certain pages at randomto update this thread.
We have now narrowed it down to
wp_redirect
Which is doing the redirection.
We made a small text change to this function to be 100% sure it is indeed the one being called.
I would guess we now need to identify why and which file is calling wp_redirect so we can fix it.
Forum: Plugins
In reply to: [Redirection] html redirecting for unknown reasonsJust to update. I have requested help in the main WordPress forums. We disabled all plugins and set to twentytwenty, and the problem still persists.
Forum: Fixing WordPress
In reply to: Site is redirecting certain pages at randomHello, and thank for your help.
We udnerstook some work out of hours last night.
All plugins were disabled, and the theme was reset to twenty twenty.
With ALL plugins disabled, and twenty twenty ACTIVE, the problem still existed.
If we went to any url ending with .html it redirected to the homepage.
Do you know what the next thing to try might be?
Forum: Fixing WordPress
In reply to: Site is redirecting certain pages at randomAsking in the plugin support was my first action, but after testing and diagnoses, I was advised to ask here.
The plugin is now removed from the site, and the issue persists.
Forum: Plugins
In reply to: [Redirection] html redirecting for unknown reasonsThanks for your help. Yes we are using CF, but we have disabled it during testing without any change. The header does indicate that rediect is being generated by WordPress, whereas it would be different in Cloudflare I believe.
I will also give the WP forum a try.
@stodorovic Thank you so much for all your help.
Just to confirm that I have managed to implement your suggested solution, and also done so for the meta-description. It works perfectly.
I really appreciate your time, and if you are ever looking for work with wordpress please msg me, Id love to work with you.
Thank you @stodorovic
Ok I have made some progress.
I have insert the replace code before the get_header, and it works.
return ‘My name is Moses’;
If I set the title as %%myname%% it correctly sets the title as “My name is moses”.
The issue I have is I want to set the page title to be a variable (which is declared higher up the page).
If I change the code to;
return %tutorname;
Do you have any idea how I would set the title to the content of the variable $tutorname?
Many thanks
hi @stodorovic thank you for your help.
Sadly the custom post type method isnt viable due to the api integration….but I wont bore you with that.
I have looked over the solution you provided a link to, but I am struggling to see any outcome from it.
The code snippets provided, I have tried placing into the page’s template file, before the get_header();line.
However it doesnt make any difference….the title remains the same, and still comes from the one set in the back of wordpress.
If you can confirm I am placing the code in the correct place it would be awesome.