Wordpress Pages On Homepage Instead Of Posts

Finalizat Postat la acum 5 ani S-au achitat serviciile după ce au fost prestate
Finalizat S-au achitat serviciile după ce au fost prestate

I am using Fukusawa theme on wordpress.

I added this code in the [login to view URL] file to get pages on my homepage instead of posts:

add_filter( 'pre_get_posts', 'my_get_posts' );

function my_get_posts( $query ) {

if ( is_home() && false == $query->query_vars['suppress_filters'] )

$query->set( 'post_type', array( 'page') );

return $query;

}

This works perfectly. But, I want to exclude some pages.

I found a solution but can't get it to work, for example....

$query->set( 'post__not_in', array( 2 ) );

So, I need someone who can help me exclude some pages from the homepage stream.. Should be super easy and fast for a wordpress pro....

CSS HTML MySQL PHP WordPress

ID Proiect: #17505687

Detalii despre proiect

15 propuneri Proiect la distanță Activ acum 5 ani

Acordat lui:

rnavabi86

It is supper easy project I can handle it in less than an hour. Let me have access to the codes and I can do it for you. Thanks

%selectedBids___i_sum_sub_4%%project_currencyDetails_sign_sub_5% USD în 1 zi
(13 Recenzii)
4.6

15 freelanceri plasează o ofertă medie de 23$ pentru proiect

GetReal

Hi, Let me have you exclude the pages, ready to start now and have it done for you as soon as possible...thanks!

$35 USD în 0 zile
(948 recenzii)
8.2
superwanchiu

Hello , How are you? I just saw your project description carefully. I am very interested in your project. I have rich experience in WordPress front-end and back-end. I can switch page instead of post page. I am Mai multe

$25 USD în 1 zi
(275 recenzii)
7.9
saiSoftIndia

I have read your requirements and think that I would be a great fit for this project, Ready to start

$25 USD în 0 zile
(451 recenzii)
7.7
dagdya99

Hi, I'm interested to work on your project, I will start project immediately Please let me know if you require any detailed information. Waiting for your reply Thanks Dev

$35 USD în 1 zi
(544 recenzii)
7.8
baniksubir1

Dear Hiring Manager, Today Your job posting (Wordpress Pages On Homepage Instead Of Posts) has caught my attention because I’m very experienced Developer I'm Good at CSS, HTML, MySQL, PHP, WordPress Hi tokyo105! Please Mai multe

$30 USD în 3 zile
(127 recenzii)
6.6
WSolutionsinc

Let me complete this task for you. kindly see exams passed for wordpress. ****************************************** Sincerely Alex

$25 USD în 0 zile
(48 recenzii)
5.5
bdnaeem3

Hi I'm glad to check your job description. Probably I'm the best freelancer for your project and I'm 100% confident about your job completion. I have a great experience in both front-end and back-end web development Mai multe

$25 USD în 1 zi
(49 recenzii)
5.6
talhanaseer

Hi Sir/Madam ! I have read your project discription and i will complete your task in few hours Why am i bidding? - 2+ years experience creating websites/online store on wordpress and woocommerce. - Successfully c Mai multe

$10 USD în 1 zi
(60 recenzii)
5.3
sanjayahlawat1

Hello Sir, I can do this project, I have an experience of more than 6 years in web development. Check my portfolio for my recent work. Message me to discuss more about your project and the challenges you are facing , Mai multe

$30 USD în 1 zi
(33 recenzii)
5.6
free4sure

I have 5 years of experience in worpress plugin and website development, let's connect to complete this task asap.

$10 USD în 1 zi
(19 recenzii)
4.6
Izharusmani

Hi, i will solve this problem within few minutes please tell me and provide the details.I am wordpres developer with four years experience in development.

$25 USD în 1 zi
(0 recenzii)
0.0