The way you did in your code you are querying posts with the key rw_related_link
.
If I understood you right, you must use get_post_meta inside the loop.
<?php while ($normal_query->have_posts()) {
$normal_query->the_post();
$related_link = get_post_meta(get_the_ID(), 'rw_related_link', true);
// The value you want is in $related_link variable.
?>
<li><a href="https://wordpress.stackexchange.com/questions/178321/<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
<?php } ?>
Hope it helps.
Related Posts:
- Use REGEXP in WP_Query meta_query key
- Getting attachments by meta value
- What is an efficient way to query based on post_meta?
- WP_Query not working as expected for attachments and custom meta_query
- How can I create a WP_Query that returns posts where one meta_value
- WordPress altering my custom query, How to fix it?
- WP Meta Query for some meta (array) values
- How to get sum of meta_values of a meta_key in wp_query according to conditions
- Order posts by meta value and Date
- How to make Meta Query case sensitive?
- Performance when getting post meta for post retrieved by meta value
- Get attachment by meta_key value
- Fetch Record based on meta key dates
- how to make members list directory through wordpress post custom meta key.
- Large AND OR query timing out
- Filter posts by comparing custom meta value against postdate
- Nested array issue in meta_query
- Query posts by searching for a string in a meta field
- WP_Query meta compare must include ALL array values
- How do i create a custom post query when the meta value is an array?
- wp query to use both author id and meta_query
- Meta query ignores multiple values of the key
- Trouble with serialized metadata
- show most viewed post
- Why can my filter query SOME metadata but not other metadata?
- Query against multiple locations within single custom post type post
- How to set meta_query if get_post_meta returns nested array for that key? [duplicate]
- Saving custom fields for WP_Query to retrieve
- How to show all the associated posts with specific date of data metabox?
- WP Meta Query at depth 2
- WP_Query Posts by Metadata from Option Tree
- Return a single custom post from multiple meta queries
- WP_Query by meta key not returning any posts
- Nested meta_query with multiple relation keys
- Reduce or prevent calling of update_meta_cache
- Does tax_query really beats meta_query in all situations?
- ACF Relationship Field Search Filtering [closed]
- Query Multiple Post types each with own meta query
- Execute a large WP_Query with many “AND” Meta_Queries?
- ACF datepicker meta_query Compare Dates in m/d/Y g:i a – Not in Ymd Format
- Is “orderby” in WP Meta Query conflicting with Meta Query?
- How to count post meta key values for all posts in database
- How should I use posts_where to change meta_value from a string to integer?
- Sort users by meta_value_num
- meta_query with array as value
- Using WP Query to search within ALL keys in meta query
- WP Query – Get WooCommerce Products with variation that is in stock
- Meta_query with or without value
- Meta query field order together with post_date order causes posts without the meta field to be unordered
- Undefined property: WP_Query::$post
- WP_Query meta_query >= date
- Extending woocommerce admin product search
- Complex Orderby Parameters: How to query with multiple orderby parameters using meta_value_num?
- Adding an array from a query string to a WP meta_query
- Advanced Meta Query for Large Calendar Website (12k+ posts) (175k+ wp_postmeta rows)
- Query multiple meta values
- Query by multiple meta elements not seeming to work – wordpress is timing out
- How do I make a meta_query OR relation work? [closed]
- Extend product search with meta in WooCommerce
- How does one perform a sub query with different post types
- meta_compare not comparing whole integer
- Which is faster wpdb & get_row or wp_query & ge_post_meta?
- meta queries do ‘either/or’ checks
- search serialised meta_value for date value?
- WP Query ordering on a meta field for posts with a date in the future not ordering by datetime
- Selecting posts with a given meta value for a meta key
- WP_Query of custom post type sorted by meta_key has unexpected results
- Get every post with value in meta key
- get_page meta query not working, maybe a bug?
- Query by date from custom field
- Is it possible to retrieve posts depending on meta_key LIKE condition? [duplicate]
- Comparing 2 Decimal Numbers from custom fields and displaying posts
- Sort posts using multiple custom fields and menu_order in single query?
- meta_query where the meta value is not the post title
- Order (by ASC) posts with meta_key so posts without values are last
- Search filter between promo and exact price
- meta_query is overriding default search
- WordPress Meta Query Null Values Order
- Display posts from multiple value in meta separated by comma
- Getting posts by custom field value
- wordpress multiple meta value query is not working
- Strange results from WP_Query
- update_post_meta performance in a loop woocommerce
- Pre get posts sort by meta key returns no results if meta key does not exist
- I need query_posts() to order results first by a meta value and then by post ID
- meta_query with relation = AND not working as expected when combining EQUALS with NOT EQUALS
- WP Query for Multiple Post Types
- Order Posts By Custom Field That is an array of objects
- Orderby query does not work for custom fields even with meta query
- Query custom meta value – post view and date meta
- make query more simplest and in one query
- Use not custom fields in get_posts() meta_query?
- Compare meta key separation
- WordPress Query Default Order if Meta Values Same?
- Custom query (author is post_author or meta co_author) with Pagenavi pagination
- Query string form $_GET[‘value’] is not working as meta value in wp_query
- Wp query by 2 meta field – check if they exists / have value
- 294 Queries on Mainpage of WordPress
- get_post_meta bringing back results, but $wpdb->postmeta doesn’t
- Custom query with custom filtering returning incorrect results