Views is a WordPress plugin that lets you easily design the display of single pages using content templates. You can also include any field belonging to the content in your templates, without writing PHP code.
When you ask for help or report issues, make sure to tell us what you have created so far and what you want to achieve.
Viewing 15 topics - 2,116 through 2,130 (of 2,140 total)
Wordfence plugin won't allow Toolset form submission and gives a 403 error message stating potentially unsafe operation detected
Solution:
It is Wordfence plugin who prevents the form from submitting, I suggest you check it with Wordfence supporters, check if there is any special settings needed to be setup in Wordfence:
Problem: I would like to create a custom archive PHP template for Enfold theme, and I would like to use Layouts to design the page.
Solution: Copy an archive template file from the parent theme into the child theme, following WordPress Template Hierarchy rules. Add the Layouts initialization code to the template:
if ( defined( 'WPDDL_VERSION' )){
the_ddlayout( 'page-default' );
}
I need the posts to be sorted by field A within field B. The problem is that both field A and B are taxonomies. Is there a recommended workaround to achieve this?
Solution:
There isn't such a built-in feature to convert term fields to post fields, in your case, the post fields is required to sort the view's result.
So you might need to consider custom codes, for example:
Problem: I added line breaks in the post content editor but when I show the post on the front-end the line breaks are not visible.
Solution: Add visual formatting in the Visual tab of the post content editor. The Text tab is formatted using HTML rules, where line breaks do not apply.
Problem:
A custom image size is registered but when outputting the images they are smaller than expected, not properly cropped.
Solution:
The add_image_size function WordPress function has a final argument for whether the image should be cropped or just resized, which is the default, and in this case crop needed to be explicitly set to true.