I have Polylang installed on the site. The site is available in german and french.
I want my client to be able to log in, create a new post, select a bunch of options from the Button Group in french and publish. The german version of the post should then be automatically created based on previously entered translations of the french Button Group choices.
Is this possible and what kind of plugins or whatever do I need for this to work?
Thanks for any advice.
i would like to create custom fields (with the plugin advanced custom fields, acf) and insert it to my events of my calendar plugin.
Is this possible? if yes, how can i do this?
and maybe this could be a good target for future updates to automatically possible?! don’t know, how complicated this is… but it would be great
Thanks!
]]>We’re using SNAP 4.1.1 and ACF Pro 5.6.7, with posts being published to Facebook. If we create and publish a new post, none of the ACF custom fields are stored; that appears to happen whether or not the post is actually being published to Facebook. The fields in question include standard text fields, so nothing special.
If I deactivate SNAP, ACF goes back to working correctly. So SNAP is definitely the culprit.
From tracing through the code, it appears that the problem is in this function: nxs_removeAllWPQueryFilters which is called by nxs_snapPublishTo. Specifically, it’s with the removal of the ‘posts_where’ filters which presumably ACF needs to be able to find its fields and save its data.
Any ideas, please?
]]>By example, on this page, this should be displaying all programs:
https://www.afxstudentexchange.com/australia/programs/
On the other hand the code is working well here (the header is a ACF fields and it’s displaying):
https://www.afxstudentexchange.com/australia/programs/paris-group-tour/
My code on the broken page https://www.afxstudentexchange.com/australia/programs/
looks like this and it was working fine before. I’m not sure what to do… Do you think you could help?
A big big thanks for anyone who is happy to help!!!!
<?php get_header(); ?>
<?php if(have_posts()) : ?>
<?php while(have_posts()) : the_post(); ?>
<div id="blogSingleLargePage">
<?php $values = get_field('header_page',$post->ID); ?>
<?php if($values) {?>
<img src="<?php the_field('header_page'); ?>" class="headerPage"/>
<?php } ?>
<div class="post">
<h1><?php the_title(); ?></h1>
<hr/>
<div class="entry">
<?php the_content(); ?>
<!-- add matt -->
<div class="tableProgLeft">
<table class="tableProgramCat">
<h3>High school programs details</h3>
<hr/>
<?php $args = array ( 'category' => 12, 'posts_per_page' => 20, 'order' => 'ASC');
$myposts = get_posts( $args );
foreach( $myposts as $post ) : setup_postdata($post); ?>
<?php if(has_category(3,$post->ID)) {?>
<?php if(get_field('header_page',$post->ID)) {?>
<tr>
<td class="tableProgramImg" >
<a href="<?php the_permalink(); ?>">
<img src="<?php the_field('header_page'); ?>" class="thumbyProg2"/>
</a>
<a href="<?php the_permalink(); ?>"><strong><?php the_title(); ?></strong><br/>
<?php $excerpt = get_the_excerpt();
echo string_limit_words($excerpt,55); ?>...</a>
</td>
</tr>
<?php } ?>
<?php } ?>
<?php endforeach; ?>
</table>
</div>
]]>I should integrate the acf of the plug-in “event menager” with my plug-in advanced custom field, there is a way to do this?
I need to change the acf of post type event, and recurrent event and known the slugs of them.
To clarify, I want to be able to add PHP in the text areas of ACF on the admin panel and I want the PHP to work as such on the webpage. For example, this is the content of an ACF text area of the field name water_blog_post:
<div class="<?php the_field('water_type'); ?>">
<?php the_field('water_title'); ?>
<?php the_field('water_description'); ?>
</div>
In this case, the PHP in the front end shows up as raw text, not PHP, but the HTML works fine. I see there is an option to enable HTML, but not PHP, and what I want is to enable PHP so I can use PHP in an ACF field.
Sorry if I sound confusing, it’s hard to explain Let me know if I need to elaborate.
]]>Thanks for the great plugin. I was wondering if you had a function I could use in a conditional statement to wrap content other than ‘the_content()’ in my templates. Similar to the native ‘post_password_required()’.
Thanks
https://www.ads-software.com/plugins/wp-content-protection/
]]>API/get_posts/?post_type=myscustom_post&meta_key=datestart&meta_value=20140615&meta_key=competitors&meta_value=european
The problem is that the response only takes effect with the last condition regarding the acf fields on the query…how do you make a meta_query in this case?
Thanks!
https://www.ads-software.com/plugins/json-api/
]]>I would like to set 1 or more images for each post category and then when the user is creating a new post and they select the category(s), the associated images are displayed, allowing the user to select one… sort of like a featured image, but a little easier for the user as the images have been predefined for each category.
I created a custom post type “Category Image”, which allows the user to upload a image against a category and then was using Advanced Custom Fields to pull in the custom post type… close, but it needs to dynamically filtered by category, and I would also like to show a thumbnail or preview of the image.
]]>