Problem with background image for page on custom post type

Hello,
I have a problem displaying the background image for some pages. More one detail:
I created a custom post type called Discography and all the pages created take as a background the one set in the Layout and Design settings section.

On some pages, however, another image is displayed, the one I used on the Discography page:

I do not understand where to set the background image for a page created for a custom post type.

For example this is a page as I wish it.
Instead this is a page with the wrong background.

Hi @danielemeo

Please try the following:

  1. If you’re using a CDN, please clear the CDN’s cache and disable optimization services.
  2. Remove custom CSS and Javascript from the options or Child Theme and test the case.

If this doesn’t help, then please provide us with WordPress Dashboard login details in a “Secure Note” so we can investigate this issue.

Thanks.

I tried but I did not solve it. I created an access to the WordPress Dashboard.

Hi There,

The username or password is incorrect.

Could you please double check?

Thank you.

I apologize for the inconvenience. I have generated a new password. Let me know if the login works.

Hi @danielemeo

I’m not sure how it ended up like that, but it seems that some of your custom post type “Discografia” has this image as a value in “_x_entry_bg_image_full” meta key. I did a database search for you and I found these are the posts IDs that has this issue:
32, 240, 360, 324 and of course 330 which is the post in question that I’ve fixed it for you be removing these values from the database:

You have to connect to the database via any database management tool (phpMyAdmin) for example, and locate this table “wp_danielemeo_postmeta” then search the table for post_id = 32 and remove the value of these keys:
_x_entry_bg_image_full
_x_entry_bg_image_full_fade
_x_entry_image_full_duration

Hint: I used this WordPress plugin to browse your database, I also recommend having a database backup before proceeding with any database modifications.

Thanks.

Thanks so much! Following the instructions I solved the problems. But I do not understand how it was possible to set that data in the database. By changing the page in Cornerstone there is no field where you can set a background image.

Speaking of this, is there a way to make the page options for a custom post type appear in Cornerstone? It would be convenient to have the same options as when creating a regular post or page.

Hi,

The code that adds the page options can be found on entries.php and setup.php on this folder: wp-content\themes\x\framework\functions\global\admin\meta. Feel free to customize using your child theme. Just note that this particular customization is outside the scope of our support as this is not related to an issue with the theme and instead has to do with your customization of it. You may wish to consult a developer to assist you with this. X is quite extensible with child themes, so there are plenty of possibilities.

Thanks for understanding. Take care!

OK! I got it.

If possible, however, I would suggest to implement these functions in a future version of the theme.

Hi There,

Thank you for your feedback. We will test this issue using ACF Pro plugin that we provide with X and submit to our issue tracker for our developers to review.

Thanks!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.