Display Page featured Image as well as Posts featured Image

WordPress loop functions depend on the global variables, so you will have to get the data from page before you run the loop. Generally, you should be able to do something like this- $page_id = get_the_ID(); //this is important, we will use this later while(have_posts()): the_post(); //do something with the post here echo get_the_post_thumbnail( $page_id … Read more

How to resize video lightbox popup in wordpress? [closed]

Check the avada-documentation: https://theme-fusion.com/support/documentation/avada-documentation/ -> Menu -> Extra -> Videos In Lightbox -> How To Set Video Size in Fusion Theme Options How To Set Video Size in Fusion Theme Options Step 1 – Navigate to the Avada > Theme Options tab. Step 2 – Go to the Lightbox tab, and locate the Slideshow Video … Read more

How to use esc_attr__() function properly to translate a variable that contains string?

If you have static text with dynamic content then you can use. printf( esc_attr___(‘static text goes here with %s’, ‘text-domain’ ), $title ); If you have only $title then no need to translate it. Just escape it. echo esc_attr( $title ); Note esc_attr, esc_attr__ and esc_attr_e used for escaping dynamic values from HTML element attributes. … Read more

WordPress does not know the parametrs i sent to admin post

You’ve got an expected error because I cannot find any input field with kind name. There’s only action, region and street no sign of kind! Notice: Undefined index: kind in /home2/khiyabou/domains/khiyaboun.ir/public_html/wp-content/themes/khiyaboun-1/examplefile.php So the above error is a perfect error in this situation. Please rewrite your callback function like the following. Hope that’ll work // It’ll … Read more

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