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
- How to show correct td of table tags in wp_query loop
- Converting HTML Template to WordPress Theme
- Display PHP within HTML values
- Multiple options not staying selected after saving
- Dynamic Stylesheet loads but doesn’t finish
- Filter Select results based on selection
- Using loop pagination on single.php
- Using the echo command adds unwanted br tags to source
- custom fields wordpress
- Loop with slider (slider not loading)
- How to hide all child pages with post_query?
- Why the JavaScript code is ignored from wp editor?
- How to sort posts based on the value (number) of a post’s metadata?
- Show css depending on activity type in BuddyPress activity-loop [closed]
- Populate dropdown with Child Pages based on Parent Page chosen
- ACF: how do I get the fields and its values of a specific group?
- How to store data from multiple forms using ajax and php
- search and replace preword from author
- Embed html in php code
- Why my filterable portfolio page work not perfectly between slug button and slug output WORDRPESS?
- Why do WP_Query results change after updating unrelated Advanced Custom Fields (ACF)?
- Saving an array of dynamic repeater data as post_meta
- WP grandchild categories in nested ul li
- Use DOMDocument with ob_start breaks my HTML code
- Iterate through posts based on array of categories
- Output ACF repeater on frontend user’s profile page (created with Ultimate Member) [closed]
- How to change redirection route to a php page for making it only accessible by logged-in members?
- get author_name from queried post
- Displaying Woocommerce Product Category in WordPress
- Remove the first 5 characters of the_title and orderby that
- Unread Repeater field IMG alt not working
- Unable to write multiple values back to ACF user field – PHP
- How can I add extra word in permalink when someone click download button?
- Update grandchild repeater field with value per row
- Increase offset while looping
- selected option if current category is the value
- Blog posts repeat
- How to use thumbnail size of image if I’m only using src to get image
- Slick + PHP + ACF + JQuery slide reveal not working
- How to add condition in wordpress loop? [closed]
- Woocommerce : Can’t get product info in loop
- How to set variable, pass it to a partial file and remove it after?
- how to refresh div on template part?
- How to remove ?wp-mce-4103-20162941
- Customize position of social icons in upme plugin [closed]
- Why Won’t My Inputs in a form with a Get method work together?
- parts of url disappear when using # inside href=”” [closed]
- Settings API callback function inserts html quotes from nowhere
- Input data from email form not going to JSON file
- How to get the value of input hidden html from text editor to custom page template?
- Alert Bar section within WP loop is displaying even though there are no posts
- remove post that has no content
- Different post styles depending on category
- How create a Shortcode with hover and complex options
- How do I remove the product thumbnail link from a specific div in Woocommerce? [closed]
- Display category name only once inside loop
- Dot is not added at the end of href
- WordPress Multiple Navigation bars
- Position banner to right of logo in header – messed up my header file
- Commenting out unwated CSS/scripts in HTML with PHP
- Can’t find infinite loop cause
- Checking array against author id in loop
- How do I Turn This Into An if statement?
- Stuck in the query loop
- How to separate HTML and WordPress files
- Add .htm extention to a custom taxonomy
- Load wordpress content in other domain
- How Can I use WP_Query to Only Display 1 Post from Custom Post Type if Query Returns Posts with Matching ID in Custom Field
- Login to wordpress by clicking a link and specifying usernaname and password in url
- Checkbox doesn’t stay checked, conten
- Auto 301 to full post permalink? (using : /archive/%post_id% to %post_name% )
- Sort by page information by Ascending Numbers
- How do I add a custom css to all posts without affecting homepage css? [closed]
- Make PHP work with HTML tags
- post thumbnail, conditions, else wont work
- Widgets in the loop if active
- Noscript not working as it should in wordpress site