How to check that current page is a blog page in wordpress ?

Code to confirm that current page is a blog page in wordpress

Make a function in functions.php –
if(is_archive || is_author() || is_home() || is_single() || is_home() || is_tag() && post= ‘get_post_type’){
echo “this is a blog page”;
}

 

 

For more related queries, please visit.
In case, if you did not find your solution or have any query/question, please contact us.

Laravel Interview Questions 2020

Ques: What is artisan ?

Ans: Artisan is command-line interface that is used in laravel to develop an application. It provides some commands that may be helpful during development of an app.

Ques: What is composer ?

Ans: It is a dependency manager tool. Laravel also uses it to manage it’s dependencies.

Ques: What is middleware ?

Ans: As the name indicates, it acts as interface or middle layer between request and response. General example of middleware is authentication. If a user is authenticated then user will send to profile page otherwise, he/she will be redirected to login page.
There are 2 types of middleware in Laravel –
Global – It will run on every request.
Route – It will run with that route to which it is assigned.

Ques: What is dd() function ?

And: dd() stands for “Dump and Die”. It is Laravel’s helper function that can be used to dump the variable’s contents and to stop the further execution of script.

Ques: What are bundles ?

Ans: Bundles are packages that is a way to extend or add more functionality to Laravel.  These packages can have views, configuration, migrations, routes, and tasks which are mainly used to enhance the functionality.

Ques: Which database are supported by Laravel ?

Ans: Laravel supports the following databases:

– MySQL

– Postgres

– SQLite

– SQL Server

Ques: What is Lumen ?

Ans: It is a micro-framework of Laravel. It is smaller, faster an is a perfect solution for creating Laravel based  services and Restful APIs.

 

For more related queries, please visit.
In case, if you did not find your solution or have any query/question, please contact us.

HTML Interview Questions 2020

Ques: What is root element ?

Ans:<html> is the root element.

Ques: What is difference between div and span tag ?

Ans: div is block level element and span is content level element.

Ques: What are listing elements ?

Ans: <ol> and <ul> are listing elements.

Ques: Tell me name of any block level element, inline-block level element and inline element.

Ans: Block Level Elements – <div>, <h1>, <h2>, <h3>, <h4>, <h5>, <h6>
Inline Block Level Element –
<span>
Inline Element – <button>

Ques: What is difference between bold and strong tag in HTML ?

Ans: <b> makes only look as bold while <strong> tag emphasize the text as important. Text in <strong> tag will have more importance.

Ques: What is optgroup ?

Ans: This tag is used to group related options in drop down.
For Example –
<select id=”cars”>
<optgroup label=”Maruti Cars”>
<option value=”swift”>Swift</option>
<option value=”spresso”>Spresso</option>
</optgroup>
<optgroup label=”Honda Cars”>
<option value=”city”>City</option>
<option value=”brio”>Brio</option>
</optgroup>
</select>

 

 

For more related queries, please visit.
In case, if you did not find your solution or have any query/question, please contact us.

DATA TRANSFER Using FTP Server..

How to Establish FTP connection for fast data transfer between Mobile to PC :

Turn on your wi-fi in laptop
download and install any ftp server app (that you may trust) in your android mobile.
imp : set root directory to “internal Storage” or External Storage which ever you wish to link with FTP server and start the app FTP by pressing “Start” button.

How to Establish FTP connection for fast data transfer between Mobile to PC :

  1. Turn on your wi-fi in laptop
  2. download and install any ftp server app (that you may trust) in your android mobile.
  3. imp : set root directory to “internal Storage” or External Storage which ever you wish to link with FTP server and start the app FTP by pressing “Start” button.
  4. turn your mobile data off.
  5. Imp : turn your FTP service Internet Access Off.
  6. Open desktop/laptop file explorer and click on “My PC” and right click than select>> network locations area & select>> “add new network location”.
  7. click next on first window of setup wizard.
    8 imp : cancel the prompted “Connect to the internet” dialog popup and select the “Add Network Location” which is default minimized on taskbar.
  8. click “Next” and enter the “ftp server” address (provided by the mobile FTP Server app) and click “Next”.
    10 . keep the connection as anonymous or mention the user name provided by the FTP Server App and press “Next”.
    11 In Next Window, Name your connection or remain it default, it would not bother you anywhere else.

your FTP connection will be established When you follow all the steps mentioned above and a icon will appear on the “Network location area” showing the name of FTP you have choosen during connection setup.