Taro
Forum Replies Created
-
Wordfence scan is not giving a error. Al seems to be scure. But in the google search console the website is still listed as malware.
Forum: Hacks
In reply to: Re: Search result based on menu categoryForum: Hacks
In reply to: Re: Search result based on menu categoryits now active.
In order to get pages to work like the rewrite rules do for posts, all pages must have one of the region pages with the slug “worldwide” or “benelux” specified as a parent.
This is done from the start.
Forum: Hacks
In reply to: Re: Search result based on menu categoryOk copy paste did not work. Im going to put it live on sunday. I hope you have time to have a look.
I have been looking at the php file but it seems not to be working.
add_filter( 'manage_edit-ngg_manage_images_columns', 'ngg_thumbnail_column' ); function ngg_thumbnail_column( $columns ) { $columns['thumbnail'] = 'thumbnail'; //To make a column 'un-sortable' remove it from the array //unset($columns['date']); return $columns; }
- This reply was modified 8 years, 5 months ago by Taro.
Forum: Hacks
In reply to: Re: Search result based on menu categoryits live now.
Btw at permalink you can find this:
Optional
If you like, you may enter custom structures for your category and tag URLs here. For example, using topics as your category base would make your category links like https://domain.com/topics/uncategorized/. If you leave these blank the defaults will be used.
Category base
Tag baseForum: Hacks
In reply to: Re: Search result based on menu categoryOk i tested the code. I have changed it back at the moment.
The Benelux home page was only showing one post. The news page was “not found”. And other links just got a “#”.
I Will change it back with your code in some hours when i go to sleep.
I’m trying to sort the thumbnail field from a gallerie “Manage Galleries”.
I like it to sort the “broken” image first. When i upload new images to the folder and press scan folder all the thumbnails are broken. This is probably because i don’t use downsampling of the orignal image.I can fix this by press ‘recover’ one by one. The bulk option is not working for me.
This is the field i like to make sortable:
This are the settings:
Image Options:
Thumbnail Options:
- This reply was modified 8 years, 6 months ago by Taro.
Forum: Hacks
In reply to: Re: Search result based on menu categoryOk this is doing something:
When i press “read more” the menu and sidebar change to the default layout.
When i press the “date” on the news page im getting all the posts that are posted on that day. But also here the menu and sidebare are changed.
https://domain.com/junghans/junghans-launch-eventThe tags and category are not redirecting to the homepage but im getting a ‘post not found’
https://domain.com/junghans?category_name=junghans?category_name=junghans
https://domain.com/junghans?tag=watchWhen i put benelux manual in the link, the following is working correct:
https://domain.com/benelux/junghans?tag=watch
https://domain.com/benelux/junghans?category_name=junghans?category_name=junghansbut not the read more: https://domain.com/benelux/junghans/junghans-launch-event
Forum: Hacks
In reply to: Re: Search result based on menu categoryI’m going to test it; just for the information i have a custom taxonomy assigned from the start to all posts(and pages)
The posts from benelux are linked with this taxonomy “benelux” and same for worldwide
/** * Add custom taxonomies * * Additional custom taxonomies can be defined here * https://codex.www.ads-software.com/Function_Reference/register_taxonomy */ function add_custom_taxonomies() { // Add new "Location" taxonomy to Posts register_taxonomy('location',array('post','page','attachment'), array( // Hierarchical taxonomy (like categories) 'hierarchical' => true, // This array of options controls the labels displayed in the WordPress Admin UI 'labels' => array( 'name' => _x( 'Location', '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' => __( 'Location' ), ), // Control the slugs used for this taxonomy 'rewrite' => array( 'public' => false ), )); } add_action( 'init', 'add_custom_taxonomies', 0 );
- This reply was modified 8 years, 6 months ago by Taro.
Forum: Hacks
In reply to: Re: Search result based on menu categoryIf i change the slug the permalinks will be changed..?
I will get the following: https://www.domain.com/benelux-home/sample
Is it possible to change the regional page to “benelux-news”?
Forum: Hacks
In reply to: Re: Search result based on menu categoryI removed the category benelux and worldwide from the posts and pages. Changed it to benelux-news and worldwide-news. The menu and page layout is still the same and the taxonomy location(region) is still active on the posts and pages (benelux and worldwide).
But its not realy working: https://domain.com/edox?category_name=edox?category_name=edox
If you look at the newspage: you can see the correct path: https://domain.com/benelux/news but the breadcrumbs are incorrect Intro ? Benelux-News. This should be
Intro ? Benelux ? Benelux-News
Forum: Hacks
In reply to: Re: Search result based on menu categoryI found a menu bug :(. Page 1 is normal but page 2 uses a diffrent menu.
https://domain.com/benelux/clic-by-suzanne/images/nggallery/page/2
login: clic089
tryed the following but did not work:
add_filter( ‘manage_edit-nggallery-manage-gallery_sortable_columns’, ‘thumbnail_post_column’ );
function thumbnail_post_columnn( $columns ) {
$columns[‘thumbnail’] = __(‘Thumbnail’, ‘nggallery’);return $columns;
}Forum: Hacks
In reply to: Re: Search result based on menu categorypaste bin for tag and category https://pastebin.com/cG0yVtL5
- This reply was modified 8 years, 6 months ago by Taro.