Looks like you need to add 'option'
to your footer the_sub_field()
calls:
<p><a href="https://wordpress.stackexchange.com/questions/307577/<?php the_sub_field("footer_link', 'option'); ?>"><?php the_sub_field('footer_link_name', 'option'); ?></a></p>
var_dump()
is used to dump a variable, not a string, so you would need to do something like var_dump($test)
for that line to work. You are probably getting errors and warnings in your PHP log files – if not, you could turn on WP Debug to help figure out which lines of code are causing issues.
Related Posts:
- Conditional statement for parent, child and grandchild pages
- Two posts in same div – WP loop
- Advanced Custom Fields: Post Object – Not returning data [closed]
- How can I add multiple ‘tax_query’ arrays via a loop?
- Using Advanced Custom Fields to create a per page slider
- Syntax error when I try to insert my loop into an unordered list? [closed]
- Show ACF field with link to ultimate member profile/WordPress user profile below the post (single post layout)
- Creating an image from a custom field
- How to add post meta in while loop?
- Calling function in loop causes repeat data
- Search AJAX Filters – Multiple Query Loops Into One Loop (Optimization)
- ACF – Get ID of relationship field in flexible content
- How to output values from a loop into a javascript array
- ACF background-color per post in a WordPress loop
- How can I get my pagination loop to display the correct number of total pages?
- PHP for loop not working as intended
- how to remove replicating a tag inside loop?
- Automatically create a loop for post ID
- ACF loop and php formatting
- What is the best way to get the first few post from WordPress in different divs using a loop?
- the_post_thumbnail unless video id is added
- Implement “No related posts for this entry” into the loop?
- Saving meta box data from selected option’s value in database is not working
- Why would a GET variable one one page of a site cause a 404 error when a GET variable works on another page of a site?
- Where should I install a PHP library into WordPress so that code in a webpage can activate it?
- Multiple pages on one with different HTML
- Unique key for each row in a repeater field
- Store loop into array
- Looping through WP_Post Object
- Minify HTML, CSS, JS with PHPWee?
- Show Custom Taxonomy Title
- How to exclude specific category from the get_the_category(); array
- spliting posts into two columns
- Looking for most performant way to execute several similar WP queries within shortcodes
- Shortcode content output but not in correct place
- How to Display a Single Post Excerpt
- Trouble With Conditional Logic in PHP
- Add a class to the anchor tag on HTML5 gallery
- how to remove metadata from the posts of my blog?
- How to store data from multiple forms using ajax and php
- Why do WP_Query results change after updating unrelated Advanced Custom Fields (ACF)?
- Iterate through posts based on array of categories
- selected option if current category is the value
- How to use thumbnail size of image if I’m only using src to get image
- How to add condition in wordpress loop? [closed]
- Alert Bar section within WP loop is displaying even though there are no posts
- How do I remove the product thumbnail link from a specific div in Woocommerce? [closed]
- Load wordpress content in other domain
- Is this spyware on my site or a real Java update?
- How to avoid duplicates when creating recent network posts
- variable value disappears in a second loop
- WordPress plug-in for dynamic download link?
- How to remove the h6 tag for the entry-category Class
- Override user-edit.php to design own profile page
- Get all posts as an array ID => Name
- How to get post ID from button and pass title to Modal
- what is the method to echo class attribute inside the i tag? [closed]
- Menu Custom Data Attributes
- Display child page content of a specific parent on home page
- How to turn each phone number within the $content to a telephone link?
- Creating custom page template from existing PHP site
- wordpress site – using custom database and PHP
- Do not duplicate posts with multiple categories in multiple loops
- How do I access post_meta key with php?
- Separate array output into a
- Remove in post content
- WordPress loop is not working
- Remove Post if Advanced Custom Field is checked to fix paging
- Using php inside javascript [closed]
- WordPress custom post type and taxonomy
- Problem in replacing the_content with the_excerpt()
- Delete images from media library when user deletes an image from ACF Gallery
- Display WordPress search results based on the selected Sub-Category
- How do I call a value from the datase using ajax
- Fatal error login WordPress [duplicate]
- Pagination contents not changing in Front page WordPress
- Passing a value from an input field to a php function in WordPress?
- Display all categories including sub categories under a list ul
- Comparison operator != not working in field [closed]
- ACF relationship on user profile page used for allowed access
- Where does php code to load data go?
- Problem with my Login Plugin
- How to return html as a string from php for WordPress
- Unable to insert current username into custom table through html form
- Splitting table data to pages with numbers
- Efficient way of querying for a “fallback” post?
- enumerating custom taxonomies?
- If or/and statement advanced custom fields [closed]
- featured post as div background
- How to display thumbnail if post is assigned one otherwise not
- Pagenav Not appearing on custom Template
- how to manipulate HTML parameters using PHP conditions
- Display wordpress post to static website in the footer
- Remove the_content From Loop
- Php echo into tag
- Pagination in category.php not functioning
- How to edit homepage in WordPress?
- How to handle parent and child pages?
- How to create a loop that will display one post and stop?
- How to create a container in php then customise it in CSS