Forum Replies Created

Viewing 15 replies - 61 through 75 (of 117 total)
  • Plugin Author Alex Kirk

    (@akirk)

    I might have fixed this in https://github.com/akirk/enable-mastodon-apps/pull/35, I’ll release a new version soon.

    Plugin Author Alex Kirk

    (@akirk)

    Hi, sorry for the trouble. Unfortunately Ivory is a black box, that error doesn’t say anything about what it doesn’t like about the server response. Is the problem still the case for 0.4.1?

    Could you turn on debug mode and check what the last request is when it fails? Thanks!

    Plugin Author Alex Kirk

    (@akirk)

    I’ve tried to reproduce this using the WordPress playground with not all of the plugins you mentioned but the ones I suspected of interference: https://playground.wordpress.net/?plugin=duplicator&plugin=friends&plugin=hum&plugin=google-analytics-dashboard-for-wp&plugin=email-subscribers&plugin=email-subscribers&theme=greatwp

    Things seem fine, so I wondered if on your site the Friends plugin really breaks everything just upon activation or if you might have some settings activated. For example this configuration would remove the posts from your frontpage:

    Plugin Author Alex Kirk

    (@akirk)

    Hi @fabioromeo,

    What you write sounds right to me. My solution for the third item is Enable Mastodon Apps, an for the fourth, the Friends plugin.

    The last point is my problem here. I was able to have a fediverse user on my own domain, let’s call it A. When I add a user from, say, mastodon.social, let’s call it B, I can see the posts of B on Friends just fine. However, if user B from Mastodon see my WordPress user A in a Mastodon app, the posts from B shows in the A timeline as if they were made by A, which is… not good.

    Could it be that you have added the second Mastodon user through this UI?

    If you use the above, then the different users appear in the same account. The idea is that you can subscribe to multiple feeds per person (maybe into the same, maybe into different post formats).

    If you have two different people, you will rather want to use “Add new Friends”:

    Does this help?

    Plugin Author Alex Kirk

    (@akirk)

    Hi, I’m sorry about this. It does sound like an interaction with other plugins or the theme, it works well for me.

    Which other plugins do you have and which theme?

    Plugin Author Alex Kirk

    (@akirk)

    Hi, are you talking about the public page (in the Friends menu “My Public Friends Profile”) or the view when you are logged in?

    For the former, it is simply a WordPress page with the title Friends and thus a slug “friends”. You can click on the URL in the editor to verify/change it:

    The page is made up of three blocks:

    And each of the blocks has a Friends Visibility Setting:

    Hope this helps!

    Did you try to run your site in troubleshooting mode (Tools > Site Health > Troubleshooting)? In that mode all plugins are deactivated and thus you should be able to see if it is a plugin causing this or if the problem is in the templates.

    Hi @oscarguy,

    I checked your website and saw that you are using the TwentyTwentyThree which you have nicely customized using the site editor.

    In that theme, by default, there is no Read More link for the post excerpt but you can add one:

    On your homepage, click “Edit Site” in the toolbar and then you should see your site with one post that has the excerpt. If you click that excerpt, you can customize that.

    Note that at the bottom of that block it says: Add “read more” link text with a dotted underline and in grey. If you click that, you can type your own text, for example “Read More”.

    Hit “Save” and your site show now have Read More links.

    Hi @jadenemayla,

    I checked the HTML source of your website and likely you inserted the code using the Insert Headers and Footers plugin.

    So you’ll go into your wp-admin, Code Snippets in the sidebar and then Headers and Footers and you can then delete the code from there and click “Save Changes”.

    Hi,

    you are right that from a database layout perspective a term could be shared between taxonomies. This is what it used to be like before WordPress 4.2. But we ran into problems with this when updating terms, see the Core Trac ticket 5809.

    So since then, even if a term has the same name and could be reused from another taxonomy, a new term will be created. The database layout wasn’t changed to reflect this and I agree that term_taxonomy_id therefore seems redundant (although you still need to follow the table relationship, sometimes term_id and term_taxonomy_id are the same but it’s not guaranteed to be so).

    Technically you could still make a term that’s shared (by inserting it in the database) but since WordPress 4.3, WordPress has a cronjob that will split the terms, so after a short while your term shared between taxonomy will be duplicated.

    One way to deal with your scenario is to make use of term hierarchies. You create a person and child terms with their roles. You then attach those child terms to the posts.

    Something like this:

    $taxonomy = 'person';
    register_taxonomy( $taxonomy, 'post', array( 'hierarchical' => true ) );
    $chakrapani = wp_insert_term( 'Chakrapani', $taxonomy );
    $speaker_chakrapani = wp_insert_term( 'Speaker Chakrapani', $taxonomy, array( 'parent' => $chakrapani['term_id'] ) );
    $author_chakrapani = wp_insert_term( 'Author Chakrapani', $taxonomy, array( 'parent' => $chakrapani['term_id'] ) );
    
    $gautam = wp_insert_term( 'Gautam', $taxonomy );
    $speaker_gautam = wp_insert_term( 'Speaker Gautam', $taxonomy, array( 'parent' => $gautam['term_id'] ) );
    $author_gautam = wp_insert_term( 'Author Gautam', $taxonomy, array( 'parent' => $gautam['term_id'] ) );
    
    $talk_post = wp_insert_post( array( 'post_title' => 'a talk' ) );
    $talk2_post = wp_insert_post( array( 'post_title' => 'another talk' ) );
    $author_post = wp_insert_post( array( 'post_title' => 'a book' ) );
    
    wp_set_object_terms( $talk_post, $speaker_chakrapani['term_id'], $taxonomy );
    wp_set_object_terms( $author_post, $author_chakrapani['term_id'], $taxonomy );
    
    wp_set_object_terms( $talk2_post, $speaker_gautam['term_id'], $taxonomy );
    
    // returns $talk_post and $author_post
    get_objects_in_term( get_term_children( $chakrapani['term_id'], $taxonomy ), $taxonomy );
    
    // returns $talk_post
    get_objects_in_term( $speaker_chakrapani['term_id'], $taxonomy );
    
    // returns $talk2_post
    get_objects_in_term( get_term_children( $gautam['term_id'], $taxonomy ), $taxonomy );

    Finally, two more links for some context of the happenings at the time:

    Hope this helps!

    • This reply was modified 1 year, 6 months ago by Alex Kirk.

    Hi,

    the preview is not an image but a live block preview, see the example>attributes in the core/gallery block itself:

    example: {
    	attributes: {
    		columns: 2,
    	},
    	innerBlocks: [
    		{
    			name: 'core/image',
    			attributes: {
    				url: 'https://s.w.org/images/core/5.3/Glacial_lakes%2C_Bhutan.jpg',
    			},
    		},
    		{
    			name: 'core/image',
    			attributes: {
    				url: 'https://s.w.org/images/core/5.3/Sediment_off_the_Yucatan_Peninsula.jpg',
    			},
    		},
    	],
    },

    So I’d recommend to just use the above example and change the images to your liking.

    Hi there,

    the problem is most likely the collation of your MySQL database. I am pretty sure it is just “utf8” and it needs to be utf8mb4. See also this core post from 2015.

    The reason that some emoji characters that you shared work is caused by what byte sequences represent them:

    U+1F64C PERSON RAISING BOTH HANDS IN CELEBRATION character: ??
    U+1F612 UNAMUSED FACE character: ??
    U+26D4 NO ENTRY character: ?
    U+1F44D THUMBS UP SIGN character: ??
    U+1F381 WRAPPED PRESENT character: ??
    U+1F4CB CLIPBOARD character: ??
    U+1F986 DUCK character: ??
    U+1F440 EYES character: ??
    U+1F501 CLOCKWISE RIGHTWARDS AND LEFTWARDS OPEN CIRCLE ARROWS character: ??
    U+274C CROSS MARK character: ?
    U+2757 HEAVY EXCLAMATION MARK SYMBOL character: ?
    U+2728 SPARKLES character: ?
    U+270D WRITING HAND character: ?
    U+1F4CC PUSHPIN character: ??

    As you can see, all the emojis that worked start with U+26/7 and those that don’t with U+1F and are 1 byte longer.

    Changing the MySQL collation can be done in a tool like phpMyAdmin or with a dedicated plugin. I recommend you to look at this guide by Florian Brinkmann on how to Switch WordPress from utf8 to utf8mb4 retrospectively.

    According to this Github issue this would be var:preset|spacing|ecart-2.

    Hi,

    It is correct that as soon as you use a block pattern in a post, it will be copied into the post so any subsequent changes that you make on the block pattern itself won’t be reflected in pages that have already been saved.

    A potential solution could be that you add a unique CSS class to your block patter and do all subsequent styling through a global CSS on the theme, this will affect all blocks that have this CSS class.

    Unfortunately I am unaware of the possibility to add a block pattern by default to a page. You can use Block Templates to define the default content for new posts or CPTs but as far as I know you’d need to specify the block pattern as PHP code instead of HTML.

    Hi,

    Bulk modifying posts is a bit dangerous, thus I’d propose to create a plugin or use the Snippets plugin to insert this piece of code

    add_filter( 'the_content', function( $content ) {
        $v_url = get_post_meta( get_the_ID(), 'v_url', true );
        if ( $v_url ) {
            $iframe = '<iframe src="' . esc_attr( $v_url ) . '"></iframe>';
            $content = $iframe . $content;
        }
        return $content;
    } );

    If the currently displayed post contains the post meta v_url, then use it to put an iframe at the start of the post content.

    When you update a post, make sure to remove the meta value so that it will no longer prepend that iframe.

    Does this help?

Viewing 15 replies - 61 through 75 (of 117 total)