Forum Replies Created

Viewing 15 replies - 211 through 225 (of 243 total)
  • Hi Mikko,

    Is there any workaround to achieve this while still using Relevanssi? I too followed the guide mentioned in this thread and it worked using the default WordPress search, however, it did not work with Relevanssi because as you mentioned the guide uses the query_posts() call to achieve multiple search results pages.

    Relevansii has been absolutely amazing so far but I’m likely going to have the need to style search results pages differently because of custom field data I am feeding into the search results. If there is a workaround, please let me know. I really appreciate your help.

    Best Regards,

    Mark

    Thread Starter Mark

    (@markob17)

    Thanks for the explanation Mikko! For some reason I still can’t get it to work using the example you just provided, however, I messed around and ended up trying the values below and I was able to get it to work. Not sure why I couldn’t get it to work using your example. Either way, it is working for me now. Thanks again for your help!

    $url = esc_attr(add_query_arg(array(‘I PUT TAXONOMY NAME HERE’ => ‘I PUT TAXONOMY SLUG HERE’, ‘s’ => get_search_query()), $url));

    Thread Starter Mark

    (@markob17)

    Hi Mikko,

    Thank you for replying to my question so quickly, appreciate it. Unfortunately, I’m brand new to PHP and can’t quite get this to work.

    Do I have to specify all the values you added to the array (taxonomy slug, terms, and taxonomy term slug)? Or will one of the values be sufficient, for example just the taxonomy slug?

    I know what a taxonomy slug is but I’m not quite sure what the ‘terms’ or ‘taxonomy term slug’ is.

    Would you be able to provide an example (for a newbie!) based off the code I used to register my taxonomy? If so, it is below. Thanks!

    function add_trainers_taxonomies() {
    	// Add new "trainers" taxonomy to Pages
    	register_taxonomy('trainers', 'page', array(
    		// Hierarchical taxonomy (like categories)
    		'hierarchical' => true,
    		// This array of options controls the labels displayed in the WordPress Admin UI
    		'labels' => array(
    			'name' => _x( 'Personal Trainers', 'taxonomy general name' ),
    			'singular_name' => _x( 'Location', 'taxonomy singular name' ),
    			'search_items' =>  __( 'Search Locations' ),
    			'all_items' => __( 'All Locations' ),
    			'parent_item' => __( 'Parent Location' ),
    			'parent_item_colon' => __( 'Parent Location:' ),
    			'edit_item' => __( 'Edit Location' ),
    			'update_item' => __( 'Update Location' ),
    			'add_new_item' => __( 'Add New Location' ),
    			'new_item_name' => __( 'New Location Name' ),
    			'menu_name' => __( 'Personal Trainers' ),
    		),
    		// Control the slugs used for this taxonomy
    		'rewrite' => array(
    			'slug' => 'personal-trainers', // This controls the base slug that will display before each term
    			'with_front' => false, // Don't display the category base before "/locations/"
    			'hierarchical' => true // This will allow URL's like "/locations/boston/cambridge/"
    		),
    	));
    }
    add_action( 'init', 'add_trainers_taxonomies', 0 );

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    You will have to use CSS to just add the border on the left or right side. Will simply have to assign the image a class when adding within a post. There is a field for the class

    For example you could create a css class called customclassborderright or customclassborderleft and then put that in the css class field in the post editor after adding an image.

    Of course you will need add this class to your custom.css or style.css sheet. Using the examples above you would add this value for example:

    .customclassborderright { border-right: 1px solid black; }

    or

    .customclassborderleft { border-left: 1px solid black; }

    etc.

    Good luck!

    I want to see the image dimensions when I drag the corner of an image just like adairk mentions. Why did they remove that feature? The new version of wordpress is annoying so far. They need to bring those simple features back.

    Who’s bright idea on their core development team was it to upgrade or should I say downgrade image capabilities in 3.9?

    In addition to all the aforementioned problems on this thread I also used to be able to easily resize images by clicking on the corner and would then see the pixel dimensions in real-time as I dragged the image smaller or larger. This is also now gone?

    I realize the freaking benefits of css but come on guys, listen to your users. Been a user for years and this is the worst idea I’ve seen to date. Sometimes we want to perform old fashion tweaks to our images on some pages individually. I’m sure others, especially newbie end-users are going to run into a wall.

    Bring this feature back, seriously.

    Thread Starter Mark

    (@markob17)

    I think it depends on the theme whether or not it includes the author bio on the author archive page. Sounds like your theme only shows the lists of posts by the author on the author archive page. For example, https://www.example.com/author/johndoe on my site shows the authors posts underneath their author bio.

    The fix I found simply allows the person to click on the authors image to access their archive page.

    Thread Starter Mark

    (@markob17)

    Mikko, thank you for your quick support on this. Turns out I had to first disable w3 total cache before adding it to my site plugin. Not sure why but after enabling w3 total cache again it now works without issue.

    Thanks again!

    Thread Starter Mark

    (@markob17)

    Specifically, the line in the error was referring to this section of the code:

    function rlv_asc_date($query) {

    Thread Starter Mark

    (@markob17)

    Hi Mikko,

    Thanks for sending over the code, however, it returns the error below:

    Parse error: syntax error, unexpected T_FUNCTION

    Any ideas?

    Scratch the above, unfortunately also removes legitimate admin messages. Changing it to “div.error { display: none; }” seems to work better as it doesn’t remove all admin messages, however, no guarantee.

    Thread Starter Mark

    (@markob17)

    I’m using fancybox. This plugin: https://bryceadams.com/light-free-responsive-lightbox-plugin-for-wordpress/ also uses fancybox but the responsive capability works. Any ideas?

    Thread Starter Mark

    (@markob17)

    Figured out a solution. If anybody is also interested in this please let me know.

    You can hide the message yourself using the White Label CMS plugin and adding the below css to the admin settings section:

    .wrap div.updated, .wrap div.error, .media-upload-form div.error { display: none; }

    When using the above method the nag box still shows for a fraction of a second before disappearing but it works without conflict since it simply uses css to hide the message.

    Cheers

    Hi Prisqua,

    This plugin was working for me until the latest update. It now breaks one of my other plugins. You can hide the message yourself using the White Label CMS plugin and adding the below css to the admin settings section:

    .wrap div.updated, .wrap div.error, .media-upload-form div.error { display: none; }

    Using the above method the nag box still shows for a fraction of a second before disappearing but it works.

    Cheers

Viewing 15 replies - 211 through 225 (of 243 total)