Here's a puzzle from the Bible. It says that Jesus will sit on the throne of King David. It also says that King Jeconiah, who is descended from David, will never have a descendant on the throne. So how can Jesus, apparently a descendant of Jeconiah, sit on the throne of David? First let's look at what the text says.
The Lord said to David on his deathbed.
2Sa 7:16 And thine house and thy kingdom shall be established for ever before thee:
thy throne shall be established for ever.
It says the Messiah will sit on David's throne forever.
And that Jeconiah's descendants will not sit on that throne, (he is mentioned by name in Jer 22:28).
Isa 9:7 Of the increase of his (Messiah) government and peace there shall be no end, upon the throne of David, and upon his kingdom, to order it, and to establish it with judgment and with justice from henceforth even for ever. The zeal of the LORD of hosts will perform this.
Jer 22:30 Thus says the LORD, 'Write this man (Jeconiah) down childless, A man who will not prosper in his days; For no man of his descendants will prosper Sitting on the throne of David Or ruling again in Judah.'
Chuck Missler sums up the problem this way.
This curse created a rather grim and perplexing paradox: the Messiah had to come from the royal line, yet now there was a"blood curse" on that very line of descent! Koinonia House 
Between The Ears BLOG INDEX, with titles and summaries.
The Beginning of the Solution
The genealogy of Jesus given by Matthew shows Mary's husband Joseph to be a descendant of David, Solomon, and Jeconiah. Does this imply that Joseph was in line to be king of Judah? IDK. If you compare this genealogy to 1 Chronicles 3:15–16, you will note that some kings are actually skipped, basically for wickedness - Genealogy of Jesus . Note also that Jeconiah is also called Jechonias, Coniah, and Jehoiachin. Verses skipped for brevity.
But the genealogy given by Luke lists the ancestors of Mary. Notice that Nathan, not Solomon is listed. This neatly avoids the blood curse on Jeconiah. Again, verses skipped for clarity.Mat 1:6 And Jesse begat David the king; and David the king begat Solomon of her that had been the wife of Urias;
Mat 1:11 And Josias begat Jechonias and his brethren, about the time they were carried away to Babylon:
Mat 1:16 And Jacob begat Joseph the husband of Mary, of whom was born Jesus, who is called Christ.
Luk 3:23 And Jesus himself began to be about thirty years of age, being (as was supposed) the son of Joseph, which was the son of Heli,
Luk 3:31 Which was the son of Melea, which was the son of Menan, which was the son of Mattatha, which was the son of Nathan, which was the son of David,
In the Greek, Joseph is named without a definite article, meaning the genealogy is Mary's - ChristianityStackExchange . The phrase "as was supposed" occurs in nearly all English translations; it is taken from enomizeto, meaning "by law", showing Jesus as the legal heir of Joseph - BibleOne . Joseph is considered more of a son than a son-in-law in this case.
So, it took a virgin birth to get around the blood curse of Jeconiah. But does it place Him on the throne of David?
Enter the Daughters of Zelophehad
|Five Daughters of Zelophehad|
There is an exception to the law of inheritance. If a man has only daughters, inheritance could pass to them as long as they married within the tribe. The daughters of Zelophehad got a judgment from Moses, and set a precedent.
Num_27:7 The daughters of Zelophehad speak right: thou shalt surely give them a possession of an inheritance among their father's brethren; and thou shalt cause the inheritance of their father to pass unto them.
Num 36:6 This is the thing which the LORD doth command concerning the daughters of Zelophehad, saying, Let them marry to whom they think best; only to the family of the tribe of their father shall they marry.
2Sa 7:13 He (Solomon) shall build an house for my name, and I will establish the throne of his kingdom for ever.
Stone of Scone
Luk 1:32 He shall be great, and shall be called the Son of the Highest: and the Lord God shall give unto him the throne of his father David:
Hos 3:4 For the children of Israel shall abide many days without a king, and without a prince, and without a sacrifice, and without an image, and without an ephod, and without teraphim:
Some scholars say that when David received the promise that his house, his kingdom, and his throne would be established forever (2Sa 7:16), it did not mean an unbroken monarchy.
God did not promise an unbroken monarchy but an unbroken line of descendants from David who would be qualified to sit on that throne when it was reestablished. David’s line would not fail before the righteous Branch came to claim His throne (cf. Luke 1:31-33). The genealogies of Matthew and Luke show that this promise was fulfilled as Christ was able to trace both His legal line through Joseph and His physical line through Mary back to David (Matthew 1:1-16; Luke 3:23-31) - Bible Knowledge Commentary .
Meaning, qualified descendants, not necessarily kings. Which brings us back to the daughters of Zelophehad. In the end, the exact meaning of God's promise to David is unclear to me, and beyond my scholarship. When Christ returns, He comes as King of Kings, and will sit of the throne of David. When and where He was or will be given the throne of David is not clear to me.
I started writing this thinking I had a nice small topic, a lesser known nugget of Bible truth to share, inspired by the teaching of Chuck Missler. But like many things Biblical, I didn't find consensus. But I didn't want to waste all that research, so I tried to cover the different points of view - I still find it interesting, even if I don't have certainty. Until Jesus does return and set the record straight, the best I can say is to do your own research, and draw your own conclusions. And please, share your thoughts with me.