Completed

Get Json Post from Wordpress with ACF fields

I need separated script javascript function in wordpress folder, to generate list of json all posts with ACF fields named: lat, lon and all names images.

I made it in for example php, so js can to use it.

The result is in footer on page: [login to view URL]

<?php

$args = array(

'post_type'=> 'post',

'orderby' => 'ID',

'post_status' => 'publish',

'order' => 'DESC',

'posts_per_page' => -1 // this will retrive all the post that is published

);

$result = new WP_Query( $args );

if ( $result-> have_posts() ) : ?>

<?php while ( $result->have_posts() ) : $result->the_post(); ?>

<?php the_title(); ?>

<?php

$fields = get_fields($result->the_post());

if( $fields ): ?>

<ul>

<?php foreach( $fields as $name => $value ): ?>

<li><b><?php echo $name; ?></b> <?php echo $value; ?></li>

<?php endforeach; ?>

</ul>

<?php endif; ?>

<?php endwhile; ?>

<?php endif; wp_reset_postdata(); ?>

Skills: PHP, WordPress, Javascript

See more: acf to rest api github, wordpress json api advanced custom fields, wordpress json api custom fields, acf blocks rest api, advanced custom fields website, advanced custom fields json files, wordpress rest api custom fields, acf to rest api documentation, recover blog post wordpress, auto post wordpress, auto post wordpress videos, wordpress custom fields will display post, field post wordpress, move post wordpress joomla, post wordpress blackjack, copy post wordpress, auto future post wordpress, post wordpress joomla, auto post wordpress getafreelancer, automated post wordpress

About the Employer:
( 1 review ) CZESTOCHOWA, Poland

Project ID: #21505160

Awarded to:

BrightSolution2

Hello, Thank you for this job posting. I saw this project description carefully. I have completed 50+ projects similar to your current requirements before. I have 10 years experience in Wordpress(front-end & back-end) More

$10 USD in 7 days
(2 Reviews)
1.3

13 freelancers are bidding on average $34 for this job

youdefinewesolve

Hi i am a wordpress/acf expert and i will do that job for you and that script will create json so will you share more detial with me thanks.. Regards Raees

$100 USD in 2 days
(173 Reviews)
6.3
developersperhr

Import posts( include Wordpress built-in post type and custom post type ) from CSV or XLS files. Support import post title / content and taxonomy, ACF ( advanced custom fields ) fields from CSV / XLS column. Also can s More

$20 USD in 7 days
(78 Reviews)
6.3
vashishtrupinder

Hi AM READY TO START NOW. I read through the job details carefully and I am absolutely sure that we can do the project very well. In a nutshell, I'm a freelancer with more than 7 years of work experience. in BOTH ba More

$70 USD in 2 days
(60 Reviews)
5.9
alihassan321

I am working on latest web technologies for more than 5 yrs. I have extensive experience in php, mysql, html, jquery and css. I have checked your project description. I can do it. My goal is to achieve client's satisfa More

$24 USD in 1 day
(22 Reviews)
4.7
AndITServices

Hi, I am full stack web desginer and developer in Wordpress. I have 7 years experience on WordPress platform as well as theme/plugin development , any API integretion, mulitvendor adding, existing site changes & cus More

$20 USD in 7 days
(33 Reviews)
5.3
Webguru71

Hi, I am full stack web desginer and developer in Wordpress. I have 7 years experience on WordPress platform as well as theme/plugin development , any API integretion, mulitvendor adding, existing site edit or change More

$20 USD in 7 days
(23 Reviews)
5.2
prashant2621

Hello Sir/Mam, APComp is one of the best providers of software development and other professional IT services. We have over 5 years in the software development field and a long list of satisfied customers. We know tha More

$30 USD in 7 days
(13 Reviews)
2.9
sanjoymajiwebdev

I can do it Low price best choice Hello sir, I have experience more than 5 years in website [login to view URL] design I can do it easily, please knock me quick for more discussion. Regards Sanjoy

$55 USD in 1 day
(1 Review)
0.7
umairy

Hi, I’m here to help you with your project I’ve excellent working skills, I can do complete your task in a professional manners, lets discuss more if you are interested, I will give you all information regarding your More

$20 USD in 7 days
(0 Reviews)
0.0
dugu9

I promise I can do the work. I can complete this task very well. I would like to do your task wise & precisely. I think I am fit for your job. I will wait for your reply..... Thanks...

$20 USD in 3 days
(0 Reviews)
0.0
jsteam9

I will do it for you. I'm online now to discuss, please ping me. Thanks, Jigar

$30 USD in 2 days
(0 Reviews)
0.0
hermes9563

I had read your full description in detail. we are well experienced in building CSS , MYSql , HTML, PHP, java script , PHP , wordpress, Anglar JS, React JS . we have more than 8 members in our team .We have experience More

$20 USD in 3 days
(0 Reviews)
0.0