There are some flaws in the architecture as you’ve described it, but it may well be too far along for you to change that. If it’s not, it would make more sense to extend the built-in user feature and just add the additional fields you need for that user.
If it’s too far along for that, my recommendation would be to loop through the blog posts on an item that matches a field on the CPT.
For example, you could query_posts
using author_name
(if the employee CPT name matches) or you could do a custom $wpdb->query
and loop through the posts where the email address or name or something similar matches.
But if I had a choice, I would go back and start over with extending the built in user functionality instead of using a CPT for it.
Related Posts:
- Display all posts in a custom post type, grouped by a custom taxonomy
- group search results by post type?
- How to use a custom post type as front page?
- Display several random posts, but make sure a condition is met
- Retrieving 3 latest post from each of 5 different custom post types
- Newer/Older posts links display same posts on every page
- How to solve suspected memory issue in custom WordPress loop?
- Fix custom query pagination without changing site-wide posts-per-page settings
- Randomly placed sticky custom posts complemented by blog posts
- Problems excluding a custom post-type from the loop
- Displaying custom posts only if custom meta box’s date is not expired
- Integrating Orbit slider into wordpress through custom post type
- Custom Post Type not visible on category page
- Loop on front-page.php
- Custom Post Type Taxonomies -Posts not showing in Category or Tag pages
- WP_Query | ‘post_type’ doesn’t work
- Filter by custom taxonomy slug on a custom post type
- Creating Multiple Loops in Genesis, One Post then 20, each with custom fields
- Loop through Custom Post Type, and then show children within each iteration
- Can I create a loop with multiple post types and specify different $args for each post type?
- Am unable to reset a query properly
- How to make sure content doesn’t display if selection is empty
- Two near-identical custom field types – one works, the other doesn’t . What can cause this?
- How to display all posts from standard posts to custom post types in a loop with pagination?
- Get next and previous 3 posts in a term in single post page
- Best way to style first post differently?
- Full Custom Post Type List Organised by two Taxonomies
- Get custom post type’s fields in a while loop as variables
- Posts per row on archive page (custom post type)
- pagination not working for category.php (custom post types in categories)
- Only show posts with date of today or in the future (i.e don’t show past posts)?
- How do I control the output of a custom post type in the loop?
- WordPress Loop if/else
- WP Query post__in not returning correct results
- Tag page only display 10 posts
- Pagination Error : Duplicate argument being outputted
- get_post_type is always post
- Custon Content within WordPress Loop
- get_post_meta is not working inside shortcode
- Create Array from custom post type to display a slider
- get_pagination not working on a custom post type query (using WP_Query)
- How to Make infinite loop of post
- WP_Query with custom post type ID
- Custom Post Type not showing in main loop
- My custom taxonomy is only displaying 1 of 3 terms
- Custom Post type content within a slider
- posts within custom post type all share the same content in the front-end
- displaying content of custom post type
- postsperpage value not being applied
- Display the current post in browser as the first post in a loop (for a slideshow)
- Multiple Loops on a Page Without Duplicates
- Custom Sidebar in Editor (not Widget) for Custom Post Type in Genesis
- Loop Post Types with Name and Links
- Display all images from specific CPT
- Custom loop to query posts with no featured image and/or no post editor content
- Custom post type hierarchical loop in Homepage
- Custom Post type showing up in loop, regular posts are not showing up
- Use Author Ids or Names to echo different output inside loop
- Custom Post Type, Pagination and 404s?
- What is the most efficient way to execute recursive complex queries?
- Last post in loop – custom post types
- Get Posts List of Current Selected Custom Taxonomy in Shortcode
- CPT loop doesn’t seem to account for post date?
- How to display list of custom post taxonomy terms and their posts (if any)?
- Excluded Custom Taxonomy Term Posts Displaying in loop
- Some posts not displaying by taxonomy term
- Display all posts from specific category and CPT
- posts_per_page is not working by term
- How can I group by Taxonomy on Custom Post Type while filtering out based on custom Meta
- subtracting the current post form then whole loop, which is generating all CPT titles
- % encoded URL giving 404 error in WordPress
- CPT: multiple loops with different terms
- Can I show some specific post rather than latest post?
- Custom post Query and WordPress Post Query Clash
- Add active class to foundation 6 tabs while looping categories
- Fetch loop of custom post types with AJAX
- How to make a shortcode for my WP_Query Loop? [duplicate]
- How to return custom posts in loop?
- All custom posts are not showing up
- WordPress query posts by custom post type not workng
- custom post type loop
- Loop posts in a table ordered by a custom field value
- Custom Loop Event Page
- Cant insert wrapper div into index.php
- Loop with Custom Post Type and Taxonomies
- How to create content automatically when a post is published?
- WordPress Custom Post Type and sort by Tags
- Multiple Queries and Loops within CPT Archive
- If i have custom post type with 5 custom fields do i have to create a new loop to reference each one?
- Sorting custom post types by taxonomy (So close)
- Pagination not working with custom loop
- Pagination not working with custom loop
- Looping taxonomy in taxonomy?
- Display multiple custom post type lists on homepage – multiple loops
- Custom Post Type Loop breaking php
- Styling first post using Advanced Custom Fields
- Loop doesn’t work in single-product.php page but works at normal page
- How do I filter a custom post type loop by a field?
- How to insert a post from a different post type after every nth post
- How can I incldue a “private” post type in a loop for public users?