Problem:
Formatting the slider pagination elements
Solution:
To make the pagination exact replica of your design it will require custom CSS and you will have to add such custom CSS to your view.
You can check with CSS pro and ask to help you to make pagination exact replica of your CSS. If you need custom programming for your project, please feel free to contact any of our certified partners:
- https://toolset.com/contractors/
Problem:
The customer reported that the code to set the post-expiration date/time through the 'cred_save_data' hook is not working as expected.
Solution:
Tested the customer's code and it worked as expected on a test website.
Guided that when using the custom function to set the expiration date/time, please make sure that the option 'Set expiration date for post created or edited by this form' is unchecked in the form's settings.
If you've set some post-expiration date/time through the form settings, it will override the date/time set by the custom function.
Problem:
The customer asked what is the correct format to load the content template shortcode, that gets the item attribute values from a repeating custom field.
Solution:
Guided that for the repeating field, it is best to wrap each instance of the content template shortcode inside the 'wpv-for-each' shortcode.
I have a custom post type 'content-panels' that has a many-to-many relationship with Pages.
I would like the order of the Content Panels to be different on a page-by-page basis, so I have created a numeric custom field ('position-of-content-panel-on-page') that is associated with the intermediary post type: 'content-panel-page'.
I have successfully set the order number for the Content Panels (different for each page). The problem I have is that I need Views to output the Content Panels in the order dictated by the same intermediate custom field.
Solution:
You need to setup a post view:
- Query posts of intermediary post type 'content-panel-page'
- Order the results by custom field 'position-of-content-panel-on-page'
- Filter by post type relationship between 'content-panels' and 'Pages'.
- In view's loop, display related "Content Panels" post information