Use custom fields wp_query
Ex
<?php
$args = array(
'post_type' => 'page',
'meta_query' => array(
array(
'key' => 'mytitle',
'value' => 'title',
'orderby' => 'mytitle',
'order' => 'DESC'
),
)
);
$query = new WP_Query( $args );
if ( have_posts() ) while ( $wp_query->have_posts() ) : $wp_query->the_post(); ?>
<tr>
<td><?php echo the_field('educational_ranking'); ?></td>
<td><a href="https://wordpress.stackexchange.com/questions/60150/<?php the_permalink(); ?>"><?php the_title(); ?></a></td>
<td><?php echo the_field('current_students'); ?></td>
<td>£<?php echo the_field('tuition_fees'); ?></td>
<td></td>
</tr>
<?php endwhile; rewind_posts(); ?>
Related Posts:
- Sort query_posts for Parent Pages to menue order or the count?
- change the default order of posts only for specific categories
- Remove Post if Advanced Custom Field is checked to fix paging
- WordPress sorting posts by date and title using a dropdown
- Display all values of custom a field created with ACF on a page
- Alter query on edit.php
- Conditionally loading JavaScript based on the Advanced Custom Fields in the post
- If Custom Field is empty don’t display div
- Is there a reason why my wordpress PHP page isn’t loading into my PHP template
- how to display active, upcoming and past event with featured listing with pagination
- Problem with ACF shortcode with Repeater Field in WordPress? [closed]
- How to Explode a Textarea Field and Echo each line separately, wrapped with HTML
- Sortable admin column for one meta key with three possible meta values
- Include a specific post to the query_posts and remove it if it is already in the returned list
- list posts and wrap them alphabetically A-Z
- Exclude posts from homepage having a specified tag
- Advanced Custom Fields: Post Object – Not returning data [closed]
- ACF: Only get first row of a Repeater Field
- Can’t search posts using WP_QUERY inside AJAX Function
- Importing hard coded custom field into acf field
- Strip characters, Including spaces, for tel: link
- How can I add multiple ‘tax_query’ arrays via a loop?
- Change output based on text field value
- Nesting if statements to echo only one string based on what tag was filtered?
- Displaying the last post on static homepage
- Display PHP within HTML values
- How to sort posts based on the value (number) of a post’s metadata?
- Sort custom meta column by other meta value
- Saving an array of dynamic repeater data as post_meta
- Sort the result of the main Query in shop page by a custom taxonomy
- WP_Query adds “(wp_posts.ID = ‘0’)” so no results are returned
- Unread Repeater field IMG alt not working
- Unable to write multiple values back to ACF user field – PHP
- Update grandchild repeater field with value per row
- Slick + PHP + ACF + JQuery slide reveal not working
- Advanced Custom Fields not displaying
- Counting Search results, and displaying the offset per page
- Download PDF after CF7 form submission
- Pagination broken on is_front_page()
- Upload non-featured image to image field
- HTML Special Characters in URL string [closed]
- Form search query – displaying ACF “Post Object” field as results
- InnerBlocks with allowedBlocks not working with acf_register_block
- Accessing values from ACF sub field (flexible content area) in PHP
- Creating an image from a custom field
- Get ACF options field in PHP acting as CSS
- ACF & Bootstrap Gallery Shows Blank Slides [closed]
- How can I count ACF sub_field with a certain value
- Order BY Most Liked And Published Between Previous Week Monday And Next Week Monday
- Getting taxonomy category Image from ACF [closed]
- Problem with adding custom CSS class to image in ACF Photo Gallery plugin [closed]
- How to tag the main tag? [closed]
- Removing custom sort order from admin page listing
- Advanced Custom Fields [closed]
- Saving a post ID to use in a form elsewhere on website
- posts_nav_link pulling in multiple post types
- Get All In One SEO Pack to use custom field instead of Content
- How to break up php code to avoid echo
- Limit the number of child pages
- Display Post Title From Select Choice Loop in Advanced Custom Fields (ACF) – WordPress
- Add class to all img if they have a certain ACF field
- Problems updating nested ACF field groups
- Display acf taxonomy attachment
- WordPress create custom XML RSS feed template
- Bootstrap 4 Carosuel with ACF Repeater field
- How to display acf field values from home page on all pages?
- Set ACF on order during checkout
- Is there anyway I can call the year once?
- Advanced Custom Forms PHP formatting for do_shortcode
- Get field value and use as variable in php
- ACF Gallery field images donwload
- ACF under category name in shop page [closed]
- get_template_part() not working with Advanced Custom Fields plugin
- List all ACF field values across every post on one page
- PHP/CSS: Shortcode won’t display correctly, and only displays in the head (before content)
- ACF background-color per post in a WordPress loop
- How can I copy an ACF field to AIOSEO field? [closed]
- Make sticky post with FacetWP
- WooCommerce Custom Tab with ACF Repeater Field
- PHP for loop not working as intended
- ACF + WP + Slick Slider Repeater Slide Group PHP not Displaying [closed]
- Else if Statement for Advanced Custom Fields [closed]
- How to only fetch certain Tag ID’s
- Div Missing In Custom Loop Query
- How to exclude post from being queried based on custom meta value
- Query category-specific, paginated posts and allow viewer to change sort order
- Sort posts by title, sort array by largest number [duplicate]
- WordPress – show all posts + ones with specific tag
- get_category only returning details for ‘uncategorized’
- Custom query_posts() parameter
- Posts sortable column not sorting properly for custom field numbers
- category & sub category order issues in wordpress
- ACF Date fileds to Age Convert [closed]
- Advanced custom fields Repeater conditional statement not working [closed]
- How to modify this function to exclude also the post belonging to a specific category?
- Order woo products, but first products must be with acf fields
- Custom WordPress Function – Adding items from Foreach Loop into an array and Updating Field based on array of IDs (ACF + WooCommerce)
- How can I get values from a custom post type depending on where I click on my SVG map?
- Creating posts with php-script + csv
- ACF number less than comparison not working