Forum Replies Created

Viewing 15 replies - 16 through 30 (of 45 total)
  • Thread Starter PGrizz

    (@pgrizz)

    Hey @wpmu DEV,

    There’s actually one slight problem I just noticed. ??

    When I add the title, WordPress usually automatically creates the URL underneath faster than I can add the subheadline as a custom field.

    So when I click Publish or Update, it creates the page using just the normal permalink structure, even after I’ve added both the headline and subheadline.

    I then need to click the Update button a second time immediately after the page is published/updated in order to get the page to update a second time with the headline+subheadline in the permalink.

    Is there any way you can suggest to get this to work the first time so we don’t need to double submit each time we want the subheadline added to the permalink?

    Thread Starter PGrizz

    (@pgrizz)

    Works like a charm! Thank you so much WPMU DEV! And props on making it look so easy. ??

    PGrizz

    (@pgrizz)

    I can’t seem to get this to work ??

    I’ve even tried:

    .acf_wysiwyg {
        height: 25px !important;
        min-height: 25px !important;
        max-height: 25px !important;
    }
    
    #acf-field_name .acf_wysiwyg iframe {
        height: 25px !important;
        min-height: 25px !important;
        max-height: 25px !important;
    }

    Nothing changes the default size of the WYSIWYG Editor with the Basic Toolbar. I want this to apply to all the ACF WYSIWYG Editors, but figured I’d try with the actual field name too, is that what you’re supposed to use for your_acf_key?

    Thread Starter PGrizz

    (@pgrizz)

    Ah, ok, figured a change like this would require hacking of WordPress and not the theme! I made the change to the theme’s functions.php, but it’s still acting very weird and not doing what we want.

    Now every time I update the post with the “custom_title” added as a custom field, it adds the custom_title on to the post’s title in the editor and on the actual page. Sorry for any confusion, but I want the custom_title to be added on to the post’s URL, not the default headline. The whole reason I’m doing this is to try to separate the default headline and a new custom h2 line, yet still keep both in the URL.

    It also seems to be glitching where every time the post is updated it adds the custom_title again, so if you update twice it will say Title-custom_title-custom_title, three updates will cause it to say Title-custom_title-custom_title-custom_title, and so on.

    Even after deleting the custom_title field from the post it keeps adding more custom_titles on to the title after every update made to the post.

    Thread Starter PGrizz

    (@pgrizz)

    Thanks for the quick reply and detailed example WPMU DEV! However, it doesn’t seem like that’s working… ??

    When I add that to the end of my functions.php file within the wp-included folder (even before editing anything to match my custom “headline2” field) I get the following error when trying to view the site: Fatal error: Call to undefined function add_filter()

    Thanks for the fix E3.

    PGrizz

    (@pgrizz)

    My SQL file is 88.3 MiB, it lets me manually save the database, but not email, gives the error: “Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 126688201 bytes).” Then it doesn’t save or email automatically each week like how I’ve set it to.

    PGrizz

    (@pgrizz)

    Same problem, doesn’t email me and doesn’t save every week like I’ve set it to do.

    Thread Starter PGrizz

    (@pgrizz)

    Thanks Drew, that did the trick. ??

    Thread Starter PGrizz

    (@pgrizz)

    I think it’s in searching… I’m not sure. I just update the plugin and then my search results no longer show anything. The plugin’s stats still say:

    Documents in the index: 2012
    Terms in the index: 212435

    So, it looks like nothing was lost and that I shouldn’t need to index again.

    Clicking the “Continue Indexing” option seems to slow down my entire site and takes forever, sometimes it loads for like 5+ minutes and then just stops loading and stays on the Relevanssi Search Options screen with nothing but a white page, and this is when I’m trying to load just 500 at a time. I’ve done this multiple times and the last time I tried it said “Indexing Complete!” yet still nothing shows when searching.

    Thread Starter PGrizz

    (@pgrizz)

    Here you go, this should work: https://pastebin.com/6NHT9ePM

    Also, I’m not sure if this could be an issue or not, but our theme’s Search Results just uses a php include to call the archive.php page, which is the code you’ll see in pastebin.

    Thanks Jeff, but I’m a little confused about how to implement it properly without breaking what I already have. When I add

    <?php $the_query = new WP_Query( $args );
    while ( $the_query->have_posts() ) : $the_query->the_post();
    	the_author_image();
    endwhile;
    wp_reset_postdata();?>

    under

    <?php $recent = new WP_Query("cat=871,8&showposts=6"); while($recent->have_posts()) : $recent->the_post();?>

    it stops the page from grabbing from a specific category and just shows the same post over and over again without the author image displayed.

    [Please post code or markup snippets between backticks or use the code button.]

    I’m using this to call multiple categories on my index:

    <?php $recent = new WP_Query(“cat=871,8&showposts=6”); while($recent->have_posts()) : $recent->the_post();?>

    Switching

    <?php the_author_image(); ?><?php the_author_posts_link() ?>

    to

    <?php the_author_image( get_user_meta(‘ID’) ); ?><?php the_author_posts_link() ?>

    doesn’t seem to fix it. Now sure how to do #1.

    Also having this problem using WP_Query where it works fine on single posts but not on archive pages. ??

    Thread Starter PGrizz

    (@pgrizz)

    Bump ??

Viewing 15 replies - 16 through 30 (of 45 total)