caalami
Forum Replies Created
-
Forum: Plugins
In reply to: [Advanced Custom Fields: Link Picker Field] can’t get the link to displayYour syntax looks OK:
<a href="<?php print $mylink['url']; ?>">Supported by</a>
to add the title:
<a href="<?php print $mylink['url']; ?>">Supported by <?php print $mylink['title']; ?></a>
But PHP is not being parsed on that page (since I was able to copy-paste that out of the page source). This needs to be inserted at the level of a theme template file.
Forum: Plugins
In reply to: [Advanced Custom Fields: Link Picker Field] URL format has errorsYou’d need something like:
<a href="<?php print $link['url']; ?>" target="<?php print $link['target']; ?>">Register</a>
Forum: Plugins
In reply to: [Advanced Custom Fields: Link Picker Field] URL format has errorsYep, that’s it. The plugin doesn’t generate a URL but instead returns an array with keys for the url, title, etc. For your use you’ll need something like:
<?php $link = get_field('register_link'); ?> <a href="<?php print $link['url']; ?>">Register</a>
See https://www.ads-software.com/plugins/acf-link-picker-field/other_notes/ for more info.
hope this helps.
Forum: Plugins
In reply to: [Advanced Custom Fields: Link Picker Field] URL format has errorsHi Sherri,
Can you attach the snippet of code used to generate the markup?
Forum: Plugins
In reply to: [Advanced Custom Fields: Link Picker Field] BrokenResolving this from lack of feedback.
Forum: Plugins
In reply to: [Advanced Custom Fields: Link Picker Field] BrokenPlease provide:
– WP version
– ACF version
– ACF Link Picker version
– OS/browser and browser versionIt will be very helpful to also have:
– any javascript console errors
– HTML markup for the screenshot above, copied out of browser dev toolsA contributor found an ACF function to force WP wysiwyg initialization if it hasn’t happened yet. Please take a look at v1.2.7 and see if this takes care of the issue above. I’ll mark this resolved for now — let me know if not.
Forum: Plugins
In reply to: [Advanced Custom Fields: Link Picker Field] Fails to open after updateThis update has changed the DOM class of the element in markup and javascript. It sounds like the old javascript is cached for you, so make sure to clear any edge caching and do a hard browser refresh (see https://wiki.scratch.mit.edu/wiki/Help:Hard_Refresh).
To verify the correct JS has loaded in the browser, you can view /wp-content/plugins/acf-link-picker-field/js/input.js and make sure line 50 is monitoring “.acf-lp-link-btn” (version 1.2.3), not “.link-btn” (1.2.2). The link on your page should have this class as well.
Forum: Plugins
In reply to: [Advanced Custom Fields: Link Picker Field] some display problemsI’m generally assuming that the admin side will be pretty functional (and it’s hard to do much with long URLs in table format), but I’m happy to take pull requests for translations or configuration settings at https://github.com/ahebrank/ACF-Link-Picker-Field
I’ll try again to replicate. If you could provide a WP instance that demonstrates this problem and send login credentials that would expedite things.
Marking this as resolved due to failure to replicate. The issue at https://github.com/ahebrank/ACF-Link-Picker-Field/issues/16 remains open if anyone has further insight.
Forum: Plugins
In reply to: [Advanced Custom Fields: Link Picker Field] Link Picker Field "Array"Marking this as resolved for now.
Forum: Plugins
In reply to: [Advanced Custom Fields: Link Picker Field] Link Picker Field "Array"I’m not sure if this answers your question, but see the usage instructions in https://github.com/ahebrank/ACF-Link-Picker-Field/blob/master/readme.txt
The field returns an array, so to construct a link in your theme you can use:
<?php $mylink = get_field('mylink'); ?>
<a href="<?php print $mylink['url']; ?>"><?php print $mylink['title']; ?></a>
Forum: Plugins
In reply to: [Advanced Custom Fields: Link Picker Field] Link Picker Field "Array"What is the version number of the plugin?
@janbrenstein, see my notes at https://github.com/ahebrank/ACF-Link-Picker-Field/issues/16 — I’m unable to replicate and also unable to create a custom taxonomy that doesn’t have a wysiwyg since WP seems to includes the “Description” field. What am I missing?