Cant Figure Out How to Reset the Loop…
-
Hi all! I’ve been reading for quite a while now but this is my first time posting, I hope you guys can help I’m going crazy trying to figure this out.
As some set up here is what I’m trying to do:
A friend of mine runs a company newsletter using WordPress and I’m trying to use what I’ve been learning about WordPress plugins to help streamline his process.
I’ve started the beginnings of a pretty basic plugin, and I just have one more hump I think I need to get over before I can really start moving with it.
I have created a custom post type of ’employees.’ This is a list of all the current employees of the company, this is working fine.
I also created a custom post type of ‘contributors_circle.’ This custom post type needs to be published every month. On the edit page is a list of all of the current post categories which loads fine, below each category and contributor can be selected from a dropdown of all the current employees.
The category titles and employee dropdowns load correctly
( http://screencast.com/t/tDowMMkk3RM )I am saving the chosen employee for each Category as meta in the Contributors Circle custom post. The data saves correctly (which I’ve verified by printing the_meta() ), but it does not select the correct Employee name when the edit page loads. It should be selecting the employee that was saved as the contributor in the Contributors Circle Meta…
I hope this all makes sense, I’ve pasted my code into paste bin, I’ve only pasted what is not working… the custom post setup, and meta saving is all working well, but I just can’t figure out which variable to pass to get the correct Employee name loaded when trying to add/update a Contributor’s Circle custom post.
If I can provide any more information to help with solving this please let me know!! Looking forward to getting some help, this is frustrating I know I’m so close!
Code:
http://pastebin.com/d9zMCG3cThank you for your time!
- The topic ‘Cant Figure Out How to Reset the Loop…’ is closed to new replies.