Forum Replies Created

Viewing 15 replies - 46 through 60 (of 72 total)
  • Thread Starter entumas

    (@entumas)

    Hi Michael!

    Yes, I understand how filters work, but I do not understand how to apply what you provide me.

    But I found this snippet.
    I was able to run the post_excerpt and the post_content.
    In fact I found this snippet already days ago, the problem that I had is that the id of my wysiwyg was ‘my_prefix_custom_excerpt’ and ‘my_prefix_custom_content’, then it did not work.

    I have now used the ids as ‘post_excerpt’ and ‘post_content’, and it seems to work.

    function cmb2_override_post_content_frontpage_display( $data, $post_id ) {
    	return get_post_field( 'post_content', $post_id );
    }
    add_filter( 'cmb2_override_post_content_meta_value', 'cmb2_override_post_content_frontpage_display', 10, 2 );
    add_filter( 'cmb2_override_post_content_meta_save', '__return_true' );

    The problem is that I have 3 different metaboxes that contain ‘post_content’, 2 for pages and one for a custom_post_type.
    Can that cause me any problems?
    Obviously those 3 metaboxes never go on the same page together, but I have that ‘fear’.

    Is there a way to make them work by calling them ‘my_prefix_frontpage_content’, ‘my_prefix_page_content’ and ‘my_prefix_cpt_content’?

    PD1: In the snippet notes it states that the use of wysiwyg can cause problems.

    PD2: If I reorder the metaboxes, the wysiwyg fields are blank, if I reload the page they are fine again, Are you aware of this bug?

    PD3: Will we have a problem with Gutemberg + CMB2?
    Right now I’m using a function to hide the WordPress editor on the pages where these CMB2 fields are loaded, I have installed Gutemberg and it seems that everything works fine.

    Thank you! ??

    • This reply was modified 6 years, 3 months ago by entumas.
    Thread Starter entumas

    (@entumas)

    Thank you very much for your response Michael, sorry for answering so late.

    I am using the post_excerpt field to add the presentation in the Hero of the page.
    When this information is displayed in the Hero I would like it to have bold and italics. When it is printed on other sites that is no longer important to me.
    Even so, I might end up dispensing with the bold and italic labels in the post_excerpt.

    The main problem is in the post_content, here I need to use rich text, to insert lists, images, shortcodes, etc.

    At the moment I’m using some filters to overwrite post_excerpt and post_content in the theme (get_the_excerpt, the_excerpt, get_the_excerpt_feed, the_excerpt_feed, get_the_content, the_content, get_the_content_feed, the_content_feed)

    But some plugins that I’m using (such as The SEO Framework) are not showing me the fields correctly in the backend

    I’ve seen the links you send me, but I think it’s a bit big to me, I do not know what to do with them. :S
    Could you give me more guidance on this topic?

    Thanks! ??

    Thread Starter entumas

    (@entumas)

    No, la sección Features de la Homepage tiene errores y no se puede traducir.
    Yo ya os pedí ayuda en el foro de soporte y no obtuve respuesta. Pero pongo 2 estrellas en la valoración y no has tardado nada en responder…

    Dame el soporte que he pedido y ayúdame a resolver el problema y seguro que cambio de opinión. Gracias.

    Thread Starter entumas

    (@entumas)

    Hi Michel ??

    The intention is to give a better user experience.
    I’m creating a CPT with several blocks of text and using post_content and post_excerpt as part of these blocks isn’t good for the user experience, it’s confusing.

    Actually for the excerpt I just need to work with bold & italics, but a textarea don’t allow me to do it.

    I don’t think it’s such a crazy thing that I raise. ACF for example has a function in its core for it, I do not understand why CMB2 don’t have it.
    From my point of view it would be very interesting to integrate this function on CMB2.

    Thanks for your time ??

    Thread Starter entumas

    (@entumas)

    Hi!
    As you recommended me, I used WPML.
    I have been able to translate almost everything, but as you can see in the link the section Services does not translate. I have modified the IDs as in the Features section, but it does not work.
    Can you help me with this?
    Thanks

    Thread Starter entumas

    (@entumas)

    Thanks @duongcuong96!! ??

    Thread Starter entumas

    (@entumas)

    Sorry! I had a bad character in the declaration! :S

    Thread Starter entumas

    (@entumas)

    Thanks

    It is that I’m afraid update the plugin without doing a backup before …

    I installed a copy of the web on localhost, I updated BackWPup and I get a new error:

    ERROR: Step aborted: too many attempts!

    Try to send backup file to Dropbox …
    [09-May-2016 15:47:47] Authenticated with Dropbox of user: One to One RRPP
    [09-May-2016 15:47:47] Uploading to Dropbox …
    [09-May-2016 15:49:17] ERROR: Maximum execution time of 30 seconds exceeded

    ERROR: Job has ended with errors in 378 seconds. You must resolve the errors for correct execution.

    Thread Starter entumas

    (@entumas)

    I don’t know, I haven’t found a solution

    Thread Starter entumas

    (@entumas)

    Before, I used CodeStyling Localization for my translations, but sometimes CSL don’t detect plugins or child-themes and CSL long time ago not receive updates and the developer of CSL don’t respond in the support forum.
    So I decided to look for a new translation plugin and found Loco Translate.

    When you create a new translation with Loco Translate lets you choose where to locate translation files. If you choose the folder /wp-content/languages/plugins instead of /wp-content/plugins/plugin_name/languages, ??iThemes Security be translated!
    The problem is that iThemes Security will stop working properly, only work correctly the Dashboard section, the remaining sections of the plugin will stop working (you will see only white screen).

    iThemes Security, is one of the best plugins for WordPress, is a real shame that the plugin of these errors with the translations.

    Thread Starter entumas

    (@entumas)

    Section Logs appear “backup state: OK”.
    If check the Backup as OK, I can rest assured that the backup was successful?

    Thanks Daniel, I love this plugin!

    Thread Starter entumas

    (@entumas)

    By the way, when I’m working with WPML-config.xml, is it possible to edit the name of the variable in the Strings Translation, so that the name of the field appears instead of the name of the variable?

    Thanks!

    Thread Starter entumas

    (@entumas)

    Hi Chrystl

    I’ve looked but can not get it to work.
    Do not quite understand the documentation, do not know how to translate my array.

    I tried with WPML-config.xml
    I get to show my options in Strings translation and translate, but does not work well.

    Plugin options are to choose the slugs of: custom_type, custom_taxonomy and the plugin page.
    It works for the plugin page, but not for custom_type and custom_taxonomy

    If I choose, “The language is set from content”
    It works but keeps the original slug

    If I choose, “The language is set from the directory name in pretty permalinks”
    Not working.

    Thanks

    entumas

    (@entumas)

    It would be great implement this functionality ??

    Thread Starter entumas

    (@entumas)

    I need to specifically create subdomains on my server?

    yes

    How? I created CNAME records and don’t work.

    It’s possible to work with the model of URL lang.domain in localhost?

    Yes but you must configure your subdomains

    I don’t know how to do this in XAMPP, I’ll look at Google, but any help is welcome.

    Tanks!

Viewing 15 replies - 46 through 60 (of 72 total)