- This topic is empty.
February 24, 2012 at 12:57 pm #36826
Ok, on my WordPress site I use custom fields a lot. I am using a plugin called Magic Fields 2 which basically just lets you create custom admin panels in the post/page write sections using custom fields. I have been looking for a way to show things that are new or updated using css. Like a little notification bubble, or color border or something. Anything I can do to make new items since a user’s last visit stand out so they can readily see what is new.
I have tried a lot of things and can’t seem to find an existing plugin or documentation in the wordpress codex. There are plugins that will email you when a post or page is updated, but they don’t notify you if any custom field is added or changed or updated, only the actual page or post content.
Hope that makes sense…would appreciate any help in figuring this out. Would be great to have something that not only shows what is new or updated, but would allow for such items to be marked as read. If it helps, the pages where I am doing this is only accessible by logged in users.
Thanks in advance!!
~ KahilFebruary 24, 2012 at 7:03 pm #97409
Some kind of code that would get the custom field’s timestamp and then if that custom field was added/edited/modified on today’s date, it would output the word “today” rather than the date format would be helpful. I could then do some custom css for anything with a class of “today”.
been googling all day trying to find a workable solution with no luck…February 25, 2012 at 11:42 am #97452
I don’t need a script that checks the page itself, WordPress already has a php code that does that. I’m looking for something more specific that pulls the timestamp for different custom fields on the page.
I’m trying to keep it real simple here. Just looking for a way to pull the timestamp for custom fields. If the custom field was added, edited or modified on today’s date, then instead of outputting date format it would output and display as “today”. That way can I use that outputted text as a css class. If the div has the class of “today” then it would display something a little different to signify that it is new.February 25, 2012 at 7:38 pm #97477
another thing, with WordPress, custom fields don’t have IDs attached to them. That isn’t how it works. for this to work i’m probably going to have to find a way to pull the info from the database the custom fields are stored in. honestly if it were just as simple as using an ID and the time php code I could have and would have done that…tried that too.
- The forum ‘CSS’ is closed to new topics and replies.