• _wsb

    (@_wsb)


    Hello,

    I have a configuration with 2 languages (FR and EN) and I want to get an EN page id with the FR page id.

    Is there a function that would help me to do that plz ?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Dennis Ploetner

    (@realloc)

    Hi,

    try this here:

    $hash = MslsOptions::create()->get_arr();

    $hash has what you are looking for as a key-value-pair (language -> post_id).

    Cheers,
    Dennis.

    Thread Starter _wsb

    (@_wsb)

    Thank you for your reactivity, but I don’t have the context language.

    I have an array of id (FR) and I want to to get a corresponding list with id (EN).

    Plugin Author Dennis Ploetner

    (@realloc)

    Ok, that’s another thing. If these are Posts try this:

    $options = new MslsOptionsPost( $post_id );
    $hash = $options->get_arr();
    Thread Starter _wsb

    (@_wsb)

    It belong of language context, in FR I have the right corresponding id but in EN it’s broken because I only use FR id.

    I would like to get all corresponding id with FR id, whatever language context. Can I force language context to get an id ?

    Plugin Author Dennis Ploetner

    (@realloc)

    This functionality takes the values from the options-table of a blog. So just execute it in your fr-blog. Sorry, but I don’t get your problem … please provide all information of the use-case.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Get corresponding page ID’ is closed to new replies.