89731

Custom post types support in WordLift

Question:

I am using the WordLift plugin for WordPress and I'd like to add support for Semantic SEO for other custom post types in my web site. Is there a way to do this?

Answer1:

Yes, there's a filter you can use to add the custom post types: wl_valid_entity_post_types.

The filter takes an array with the supported post types (by default post, page and entity). You can add custom post types to the array and return it, e.g.:

add_filter('wl_valid_entity_post_types', function ($post_types) { $post_types[] = 'gallery'; return $post_types; });

For reference <a href="https://github.com/insideout10/wordlift-plugin/issues/625" rel="nofollow">add a WordPress filter to allow customers to extend the post types that can be turned into entities</a> on GitHub.

Recommend

  • How to access the complete value of string variables when debugging in qt creator?
  • How to render only visible items in AngularJs Dropdown
  • Mysql : Finding empty time blocks between two dates and times?
  • Webpack 4: mini-css-extract-plugin + file-loader not loading assets
  • Why Nullable can't compile but int? does without 'using System;'
  • Stopping a python thread running an Infinite Loop
  • Transform CSS clip-path with mixed (fixed and percentage) values to SVG clip-path
  • Bigquery - select timestamp as human readable datetime
  • Subset by first and last value per group
  • how to extract short date from a full date date string?
  • Arabic characters doesn't show properly in JavaScript
  • iPad launch image problem
  • Find a directory using wildcard in Inno Setup
  • Unknown type name with typedef struct in C
  • Existing data serialized as hash produces error when upgrading to Rails 5
  • Repeatable job for Laravel json api
  • Detect when MathJax has finished loading in UIWebView
  • getting the values of checkboxes in a checkboxlist control
  • Python sum values in tuple in a list in a dictionary?
  • Unable to connect to Azure MySQL Database through Azure Function - C#
  • Corda: How to implement hierarchical relationships between state data persisted to H2
  • Adding Dynamic Row and Data on Checkbox Click
  • python socket.sendto
  • Disabling swipe gesture in Windows Phone 8.1 pivot control
  • How to get the Owner of the ContextMenu (from Silverlight 4 toolkit)?
  • Signed Java web start application with Glassfish 4.1 and Java7
  • Find all parks for a given zipcode with google maps
  • Magento-Change Attribute of All Products
  • SQL Server 2012 not showing unicode character in results
  • using maven pom while creating jar:test-jar some times it says JAR will be empty - no content was ma
  • Problems to understand DXGI DirectX 11 Desktop Duplication to get a Buffer or Array
  • How to use Streams api peek() function and make it work?
  • How to specify generic type when the type is only known at runtime?
  • How to warp text around image in iOS?
  • Did not understand process of initialize in swift programming
  • How to encrypt Connectionstring written in web.config from codebehind?
  • ssh remote server login script
  • Running R's aov() mixed effects model from Python using rpy2
  • convert json to excel in java
  • Time Complexity of Fibonacci Algorithm [duplicate]