Wordpress Custom Post Type Search - wordpress-theming

I have a WP installation with a menu/restaurant theme that adds a custom post type for "food". "food" has a title and an excerpt field it doesn't have the regular "content" field. It seems that the default WP search facility will search in the title and the content fields but not the excerpt field.
I've tried several plugins to either add the content field to my custom post type or search in the excerpt field as well as the title field but I've had no success.
Am I missing something obvious?
Many Thanks

We've had a lot of success using Relevanssi plugin for altering WordPress's search functionality. You can have WordPress index custom fields, excerpts, and other things, and also add more or less weight to them in your search results.
In the excerpt's settings, check the box shown in the screenshot below:
and then click the bottom to rebuild your search index.

Related

ACF Page Field group incorrectly appearing on Default Wordpress Posts page

I have some text fields I have added to a field group which I intend to show on pages only.
Screenshots on Field group Settings
But they are showing on the standard block editor within posts edit page. Any idea why this may be?
Thanks!
I tried Post Type is not equal to Post but its still showing
You can solve this by adding a validation to each of the rules by pressing the "and" button and adding a validation of "Post Type is equal to page". So the field group will only appear on the post type of pages.

How Do You Use SharePoint Online List Title and Description in form Header json?

I would like to use the SharePoint Online List Title and List Description in form Header json custom formatting. So far I have had no luck discovering how to do this, just how to use columns like "Title" but not the parameter to use for the List title itself. We also use Descriptions heavily and are hoping we can use this to make the transition to SP Online easier for our users.
Have attempted to discover the proper parameter names/formatting for SPO list title and description but no luck yet.

Create custom templates using ckeditor, tinymce or any online editor

I am not sure if the title represents what exactly I need to do, But here is the details. I am building a website using PHP that allows people to create different templates, then they should select one of them and then fill the fields to fill the placeholders. For example consider the following image
The name of the recipient could be a placeholder so some part of the template can be
Dear {recipient}
{body}
and I prepare two fields for recipient and the body and it will be replaced by the value of the corresponding field. I can do this. What I can't do is how to let the user to align the placeholders in the paper. For example there is a placeholder for the date that must be at right of the page, or any other placeholder that can be place inside the paper (same as the following image). I would like to know if ckeditor or any other editor allows me to create such template?
The structure of the template must be kept in A4 or A5 print page.
I’m having trouble understanding your question. If you're looking for templates in TinyMCE editor, I think you should try using template plugin for tinymce - there is one for wordpress. You can write your own plugin too, there was question about it.

Can't access Edit button for custom JIRA field, due to HTML tag in field description

In our JIRA instance, someone thought that because you could put html tags in description fields, that meant that you needed a full complement of tags to use them-- like, including <html> and, critically </html>
So, now we've got a custom field with a description containing a </html> tag, and as you might expect, the browser is not showing anything past that last tag, including any option to delete or edit the field.
Is there any way to use an API, etc to delete this field or change its description?
I'm on JIRA 4.1.2 (I know...)
Managed to solve the issue...
I used either the JIRA Advanced search, or right-click>>Inspect
element to get the ID of the field.
Then hovered over one of the "Configure" links that were showing to get the URL to the configure screen.
Then, I put the correct ID in the URL, and I was able to get back in and remove the offending tags.
That resolved the issue on the Custom Fields screen. Unfortunately, this technique had also been used on the "Field Configuration" screen, which is organized a bit differently.
The URLs to the "Edit" screens from the field configuration are formatted differently, with id= being the particular field configuration you're working with (don't change this one), and position= being the position in the list of the field you're working with (0 based index).
The easiest thing for me was to
Go to the field above the one that was messed up
Click on the Edit link, then
Increment the position parameter in the URL to give me the field I actually needed to change.
Deleted out the rogue HTML and everything was back to normal.

Wordpress - Making the backend more user friendly. Custom fields?

I'm developing a Wordpress website for a client based on Avada-theme and am a little worried, that the client is likely to mess up formatting and styling when being confronted with the standard back-end + WYSIWYG editor.
Let's take the URL: http://www.consilio-suedwest.de/angebote/ as an example.
So this is what the code looks like in the text view inside the first content box:
Die Zukunft aktiv und erfolgreich gestalten
Instead of having the client to edit the content boxes, I would like to display simply a text only field with a small description like "content box 1" in which the client can type in plain text.
Then this plain text would have to be transported with some kind of shortcode into the correct place.
So it would have to be something like.
[[plain text here]]
I don't know if something like this exists or what options I have to create a functionality like this. I did some research and, of course, stumbled upon custom fields, but it seems like I have to get into editing php.files and stuff which I don't want to do.
Appreciate your help
Take a look at the Advanced Custom Fields plugin. It has greatly helped me with improving the UI experience for WordPress admins.
It allows you to create a wide variety of custom fields, and has an extensive filtering feature to place the fields only on the pages/posts you want. For example, if you had a "Services" page, and several pages that were children of Services, you could create a "Services Description" text field that only displays on pages with Services as its' parent.
If you made a text field called "services_description" in your php code, you would call the value of the field using this:
<h3><?php the_field('services_description'); ?></h3>
If you wanted to check if the field had a value before drawing the tag, you'd do this:
<?php if(get_field('services_description')){ ?>
<h3><?php the_field('services_description'); ?></h3>
<?php } ?>
You can use many different field types, with their own settings. A sampling of the fields are:
Text Field
WYSIWYG Editor
Image Field
Gallery
Repeater
Color Picker
and many more.
They also have a great support/documentation system on their website, so you can learn how to utilize all of the various fields.
Sure, you could hand-code custom fields to your site, and there's plenty of tutorials out there to do that, but ACF is great for rapid deployment of custom content, so I'd really recommend it. They have a free and a paid version, but you should be fine with the free version.
I just noticed your last line about not wanting to edit php files. That is going to be extremely tricky in almost any solution to this. There are ways that you can hook into the_content() to alter what goes in it, but even that would still require altering your functions.php file.