Thank you !
When I try to add RE$ST fields I get:
Fatal error: Call to undefined function register_rest_field()
Do I need to include something ?
Do I need to install the WP-api plugin ?
Thank you !
When I try to add RE$ST fields I get:
Fatal error: Call to undefined function register_rest_field()
Do I need to include something ?
Do I need to install the WP-api plugin ?
Hi,
how to I get the category of a post ? please?
~Marc
Ok check you mail :)
@arminunruh May I contact you in private, I am not sure If I am allowed to expose the Design I am implementing public before release, please? (slack?gitter?skype?telegram email ?)
see: https://github.com/metafizzy/flickity/issues/377#event-661517929
Armin,
do you know any other Carousel which has this feature.
Probably it might be a nice idea to add an alternative to your plugin which allows such kind of motion.
Hi,
How to set the width of the carousel to the full width of the browser and the height manually, please ?
I have noticed that you set the width of "lay-carousel-wrap" programmatically ?
~ Marc
Hi Armin,
i quickly hacked flickity (see readme) to show of how it should behave :
Hi,
How to make the Carousel slides infinite linear like a marquee, please?
~Marc
HI Armin,
is there a way to disable the default action for specified Menu Items ?
I tried something like this, but the defaultAction is always fired:
$(document).on('click', ".primary", function(e) { //just trying to hijack all events :)
e.preventDefault()
console.log('click', e.target);
return false;
});
Hi,
thanks for the extensive reply !
Styling myself and the loose of the customizer is ok for me.
@arminunruh said:
Also anchor points of menu points in lay theme normally have these attributes: data-id, data-title, data-type. I'm using that to make the menu navigate the site using ajax.
More Interesting would be how to integrate the custom navigation into you workflow (you ajax event system).
Would I need to render the Navigation Client side or server side ?
I tryed to add a menu in the childs theme function.php like this :
if( !$menu_exists){
$menu_id = wp_create_nav_menu($menu_name);
// Set up default menu items
wp_update_nav_menu_item($menu_id, 0, array(
'menu-item-title' => __('Home'),
'menu-item-classes' => 'home',
'menu-item-url' => home_url( '/' ),
'menu-item-status' => 'publish'));
wp_update_nav_menu_item($menu_id, 0, array(
'menu-item-title' => __('Custom Page'),
'menu-item-url' => home_url( '/custom/' ),
'menu-item-status' => 'publish'));
}
Interesting is here that I get the data attributes for home, but not for about:
<li id="menu-item-52" class="snip">
<a href="http://local.site/" data-type="page" data-id="18"><span>Home</span></a>
</li>
<li id="menu-item-53" class="snip">
<a target="_blank" href="http://local.site/about/"data-type="custom"><span>About</span></a>
</li>
Is there another to create the menu directly in the layout ?
Is there a way to get also the author when using something like this please?
"http://yourwebsite.com/wp-json/wp/v2/posts?filter[category_name]=home"
Or do I need a second query for this ?
Thank you for the reply,
however I need to display the Names of the Items of a Category, and it's best automatically generated.
Let's say I have the following Projects
This is the first Project Name ( category A )
And I am the second ( category A )
...
Project 3 ( category B )
Project 4 ( category B )
...
Now I need the following Menu Link :
Category A
If you hover over the Category A Menu Item a dropdown should be shown with all Project names of category A:
Category A
-----This is the first Project Name (category A)
-----And I am the second (category A)
Selecting by id works :
$args = array(
'post_type' => 'post',
'category' => '1',
);
Hi,
I have created several projects with different categories.
Lets say I like to get all projects with the category work.
I have tried something like this:
$posts = new WP_Query(array( 'category_name' => 'work' ));
or:
$args = array(
'category_name' => 'work',
);
$posts = get_posts($args) ;
However in the result i get anytime all posts?
What am I missing, please?
~Marc
Hi,
what is the best way to add a Dropdown to the Main menu which displays all items titles of a Category, please?
I better ask before hacking your code :)
~
Marc