alienbalcorp
Forum Replies Created
-
I did it
PAST TO FUNCTIONS PHP
// Use a different hook if ‘init’ is not executed early enough
add_action(‘init’, ‘trpc_remove_add_hreflang_to_head_hook’);
function trpc_remove_add_hreflang_to_head_hook(){
$trp = TRP_Translate_Press::get_trp_instance();
$url_converter = $trp->get_component(‘url_converter’);
remove_filter(‘wp_head’, array($url_converter,’add_hreflang_to_head’));
}THEN ADD TO FUNCTIONS PHP
function get_url_no_parameters($lang) {
// Parse the URL components
$parsed_url = wp_parse_url(get_the_permalink());
// Rebuild the URL without the query string
$clean_url = $parsed_url['scheme'] . '://' . $parsed_url['host'];
if (!empty($parsed_url['path'])) {
$clean_url .= "/";
$clean_url .= $lang;
$clean_url .= $parsed_url['path'];
}
return $clean_url;
}THEN ADD TO HEADER PHP
<link rel="alternate" hreflang="en" href="<?= get_url_no_parameters("en"); ?>">
<link rel="alternate" hreflang="ar" href="<?= get_url_no_parameters("ar"); ?>">It’s happening even on your DEMO version. If I disable your plugin on your DEMO, it will be ok! But If I return back and turn on your plugin PARAMETERS from URL add to head (link alternative) and to the content of the website.
Forum: Plugins
In reply to: [PowerPress Podcasting plugin by Blubrry] How to add LINK tag to HEAD?I want to paste this tag to head my feed XML
<link type ="application/rss+xml" rel="alternate" title=My podcast" href="https://www.my-site/feed/podcast/" />Forum: Plugins
In reply to: [PowerPress Podcasting plugin by Blubrry] How to add LINK tag to HEAD?Hi! Thanks for your answer! But, this function already was turn ON. But I still don’t see the link tag in my XML podcast table. Thanks!
Forum: Everything else WordPress
In reply to: Custm Logo static whdn scfolling downHello! Unfortunately, I did not see a logo on your site, is the problem still urgent?
Forum: Developing with WordPress
In reply to: Add to menu on each postHello! Please tell me, what is the status of those who cannot publish, but can check and edit existing posts? Most likely, the simplest thing will be to simply make everyone who writes and check posts, the status Editor. This is the easiest option.
Forum: Fixing WordPress
In reply to: Post crashesHello! As I can see your test post has been posted. Could you clarify what is wrong with the test post? Also, as far as I know, seedProd is used to create stub pages during technical edits.