You’re missing <?php
and ?>
<?php
if( in_category( 'movies' ) ) { // this (end php, start html) -> ?>
<span style="font-size:16px">
<strong>Movie:</strong> <?php the_field( 'movie_name' ); ?> (<?php the_field( 'movie_year' ); ?>)<br/>
<strong>IMDb:</strong> <?php the_field( 'imdb_link' ); ?><br/>
<strong>Rotten Tomatoes: <?php the_field( 'rt_link' ); ?> <br/><br/>
</span>
<br/><br/> <?php // <- this (end html, start php)
} ?>
Related Posts:
- Disable Attachment Pages Completely
- Get meta_id along with meta_key and meta_value
- Add extra field to users
- Enable/disable post revisions programmatically
- Get post meta in enqueued js file
- Can I write ‘RewriteCond’ using ‘functions.php’?
- Use WordPress Text Editor in non-wp page
- StudioPress: add meta tag to every page [closed]
- How to add specific menu on a specific page or pages
- How do I get URL from WP_HTTP object?
- How can I add a specific, custom widget to my theme’s header.php?
- How do i get (unique) page name?
- Mysterious HTTP 404 header in my own scripts
- Archive dropdown styling not applied
- How to attach a uploaded video to post from front end
- How do I use the Simple HTML DOM Parser in plugin when other plugin already uses it?
- Change WordPress default registration error text [Error: This username is invalid because it uses illegal characters. Please enter a valid username.]
- How to make custom total price reactive in navigation
- Adding tawk.to code just before body tag on functions.php file
- How to add a second ‘place order’ button in WooCommerce [closed]
- PHP to Programatically delete a file
- Instantiate class to be available to all plugin functions
- Implement toggle switch for theme options in settings API
- Overriding WP login credentials
- Creating a Multi-Level Associative Object Using AJAX
- ACF: how do I get the fields and its values of a specific group?
- Trying to place a custom field after the total section in the checkout page in woocommerce
- Find exactly what php files are responsible for each php process
- How WordPress reacts to a lack of memory of the server [closed]
- WordPress Multiple Navigation bars
- Adding a widget function into the php theme file
- PhantomJS with wordpress
- $wpdb->insert() does not Insert record in a table
- Call to undefined method – Download Monitor
- Why does abstracting html from plugin code result in loss of access to wordpress functions?
- Grouping posts by a custom meta value
- Remove Custom Divs from AMP pages
- Read array in php?
- How to get post ID in a Page?
- Separation of presentation and code – WordPress
- Undefined method class::construct() when creating a plugin
- Can’t update multiple rows with $wpdb query
- Live to Local on MAMP, not working, outputting functions.php code
- Remove extract from function
- Undefined offset: 3 in custom function
- Redirecting to a custom forgot password page
- How to disable all logins except Network login in WordPress Multi site?
- How to pass current loop data into nested loop
- Shortcode to log user into current URL
- Why BuddyPress fields not saving?
- WordPress Staging and Testing of Plugins Best Practices
- Custom navigation menu with awsAccordion
- Taxonomy term count
- using images in next/previous_post_link [closed]
- Conditionally remove comments and post meta in functions.php
- Replacing WordPress Icons (menu,icons32, etc)?
- Wrong Number of Products When Hiding Subcategory Products From Showing In Parent Category
- How to restrict shipping zone in a specific interval time
- Display just one post from a loop of 5 posts?
- Error establishing a database connection (Set-up locally)
- Is there a way to get a wordpress user’s metadata using an external script
- Remove Author Links
- Integrate admin plugin into template. Very interesant (live search + autocomplete with wp rest api, in vanilla js)
- Hide A Class and Add Custom HTML Code Using WordPress
- File is executed twice if plugin is activating
- WordPress on Ubuntu – “File not Found” for home.php – Trying to Redirect to Root Folder
- Flushing the slug base has no effect and does not change
- Uploading/integrating custom user registration page
- Multiple cron jobs vs daily cron job doing multiple things? Which one yields better performance and scalability?
- Assign meta_query value to php variable
- Using custom php to connect to database blocks wp from accessing galery pictures
- Change WooCommerce currency programmatically on AJAX request
- JQuery modal not loading video on popup, only displaying it after multiple reopenings
- Move blogs but with applied filters
- How can I add another row to the total field in WooCoommerce cart, checkout and recipe mail?
- Use page-templates without creating theme
- Short code into PHP
- Allow user to select location and then set cookie for location in WordPress
- Previewing/Updating some Pages causes “The requested URL was rejected” Error
- Edit errors on login and lost password screen in wordpress
- Sort on two variables
- Front page not loading after updating PHP version (ec2)
- Slider from different widgets
- Result from wp_send_json adds line feed
- How to get values from wordpress listings and use them in javascript array?
- Merge / Combine two php functions for Previous and Next Link with Thumbnail
- set new link as permalink
- Repeatable field within repeatable group of fields
- Trying to customize wordpress drop down categories
- How to get WordPress Adminmenu items?
- Using a loop to build and update widgets
- Code that displays images – images get shown multiple times
- Parse error: syntax error, unexpected ‘echo’ (T_ECHO) in C:\xampp\htdocs\AttendanceSystem\resources\php\method.php on line 250 [closed]
- Adding php within a return statement [closed]
- Display post of specific category on page
- How can I prevent wordpress from sending emails
- How do I do so that people can register on my wordpress site?
- Custom taxonomy pagination shows 404
- duplicating page templates
- Upload multiple files via ajax from an HTML file input