I’m unable to call img path using single quotes in an array?

You’re trying to use PHP tags while inside a string: ‘<img src=”https://wordpress.stackexchange.com/questions/302344/<?php bloginfo(“template_directory’); ?>/images/social/facebook-share.png” />’ You need to instead use concatenation: ‘<img src=”‘ . esc_url( get_bloginfo(‘template_directory’) ) . ‘/images/social/facebook-share.png” />’ Or my personal favorite, sprintf(): sprintf( ‘<img src=”https://wordpress.stackexchange.com/questions/302344/%1$s/images/social/facebook-share.png” />’, esc_url( get_bloginfo(‘template_directory’) ) );

What php gets called for home_url/somepage URL?

Here’s an answer I posted elsewhere here: WordPress is not HTML. It’s PHP-based templates that build the HTML pages. You need more than just a quick answer. You need to learn about the entire process WordPress uses to build pages. Perhaps one place is to start here to figure out how WP works: https://codex.wordpress.org/New_To_WordPress_-_Where_to_Start . … Read more

How to add urls in html widget in a gravity form? [closed]

I think the issues is with the Quotes your using in your html…. if what you have pasted is what you are actually using href=”http://strippersjob.eu/es/aviso-legal/” These href=”http://strippersjob.eu/es/aviso-legal/” quotes seem to be Typographic quotes and not acceptable html quotes. The Typographic quotes are not really opening or clossing the href attribute so you are getting weird … Read more

Two sets of url one content?

You can create custom post type to manage your secondary content (multilanguage i suppose) and set these /fr/ your CPT rewrite base. Create a CPT function add this to your function. $rewrite = array( ‘slug’ => ‘fr’, ‘with_front’ => false, ‘pages’ => true, ‘feeds’ => true, ); After that set CPT rewrite option to rewrite … Read more

Limit wp_nav_menu_objects() only to first-level menu items

depth argument, available in functions attached to wp_nav_menu_objects hook, refers to the max depth of rendered menu (how many menu levels will be visible on site). To change only first-level elements, you can check in the loop if the menu item has a parent. function change_menu($items) { if( !is_front_page() ) { foreach($items as $item) { … Read more

How to fix automatic redirects?

Those aren’t really redirects, the “Hash” part of a URL (the # and anything after that) are purely client side and will not trigger another request to your server. The reason for it is AddThis. Here’s an explanation as to why they are doing that: What is AddThis Click Tracking? You can disable it by … Read more

Could not find the wordpress page

The page/post on WordPress aren’t storage on the filesystem (folders), they are saved on the DataBase, if you want to modify a page, you have to loging into your WordPress dashboard, and then visit the page and click on the top bar link to Edit Page, you can also go to your dashboard to the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)